kitchensync
OpieHelper::ExtraMap Struct Reference
List of all members.Detailed Description
Definition at line 55 of file extramap.h.
Public Member Functions | |
~ExtraMap () | |
void | clear () |
QString | toString (const CUID &) |
QString | toString (const QString &app, const QString &uid) |
void | add (const QString &app, const QString &uid, const QDomNamedNodeMap &map, const QStringList &lst) |
void | add (const QString &app, const QString &type, const QString &uid, CustomExtraItem *item) |
CustomExtraItem * | item (const QString &app, const QString &type, const QString &uid) |
Protected Member Functions | |
QString | escape (const QString &str) |
Member Function Documentation
void ExtraMap::clear | ( | ) |
Clear and free internal structures.
On destruction clar() is called.
Definition at line 41 of file extramap.cpp.
QString ExtraMap::toString | ( | const CUID & | ) |
QString ExtraMap::toString | ( | const QString & | app, | |
const QString & | uid | |||
) |
assembles 'app-uid' and converts the stuff to additional attributes
Definition at line 66 of file extramap.cpp.
void ExtraMap::add | ( | const QString & | app, | |
const QString & | uid, | |||
const QDomNamedNodeMap & | map, | |||
const QStringList & | lst | |||
) |
add a CUID with keyValue
- Parameters:
-
app the Application uid The uid map The AttributeMap lst The list of handled attributes
Definition at line 71 of file extramap.cpp.
void ExtraMap::add | ( | const QString & | app, | |
const QString & | type, | |||
const QString & | uid, | |||
CustomExtraItem * | item | |||
) |
Add custom information for a UID + App + Type.
- Parameters:
-
app The Application, like Todo, Calendar, Foo uid The UID of the Record type The type of the ExtraData like Alarm, CompletedInfo... item The pointer to the CustomExtraItem. Ownership of the Instance is transfered
Definition at line 92 of file extramap.cpp.
CustomExtraItem * ExtraMap::item | ( | const QString & | app, | |
const QString & | type, | |||
const QString & | uid | |||
) |
Get the CustomExtraItem for a Composed Unique Identifier.
Get the custom Item by the Composed Unique Identifier, it consists out of the Application-Name, the type of the CustomExtraItem and the actual UID of the record. This way you can have more than one CustomExtraItem for each UID.
- Parameters:
-
app The Application-Name type The CustomExtraItem Type uid The UID of the Records
- Returns:
- 0 or the CustomExtraItem for the CUID
- See also:
- add
Definition at line 98 of file extramap.cpp.
The documentation for this struct was generated from the following files: