class Item |
|
Represents a PIM item stored in Akonadi storage.
A PIM item consists of one or more parts, allowing a fine-grained access on its content where needed (eg. mail envelope, mail body and attachments). There is also a namespace (prefix) for special parts which are local to Akonadi. These parts, prefixed by "akonadi-" will never be fetched in the resource. They are useful for local extensions like agents which might want to add metadata to items in order to handle them but the metadata should not be stored back to the resource. This class contains beside some type-agnostic information (flags, revision) a single payload object representing its actual data. Which objects these actually are depends on the mimetype of the item and the corresponding serializer plugin. This class is implicitly shared.
Author Volker Krause |
|
|
Creates a new item with the given unique id. |
|
Creates a new item with the given mime type.
mimeType - The mime type of the item. |
|
Creates a new item from an other item. |
|
Removes the flag with the given name from the item. |
|
Removes all flags from the item. |
|
Returns all flags of this item. |
|
Creates an item from the given url. |
|
Returns whether the flag with the given name is set in the item. |
|
Returns whether the item has a payload object. |
|
Returns the list of loaded payload parts. This is not necessarily identical to all parts in the cache or to all available parts on the backend. |
|
Returns the mime type of the item. |
|
Returns the full payload in its canonical representation, e.g. the binary or textual format usually used for data with this mime type. This is useful when communicating with non-Akonadi application by e.g. drag&drop, copy&paste or stored files. |
|
Returns the revision number of the item. |
|
Sets the flag with the given name in the item. |
|
Overwrites all flags of the item by the given flags. |
|
Sets the mime type of the item to mimeType. |
|
Sets the payload based on the canonical representation normally
used for data of this mime type.
data - The encoded data. See also fullPayloadData |
|
Sets the revision number of the item.
Do not modify this value from within an application, it is updated automatically by the revision checking functions. |
|
Returns the url of the item. |
char* FullPayload | Creates a new item. |
Describes the type of url which is returned in url().
UrlShort | - 0 | - | ||
UrlWithMimeType | - 1 | - |