akonadi
Akonadi::ItemSerializerPluginV2 Class Reference
The extended base class for item type serializer plugins. More...
#include <itemserializerplugin.h>
Inheritance diagram for Akonadi::ItemSerializerPluginV2:

Public Member Functions | |
virtual | ~ItemSerializerPluginV2 () |
virtual void | apply (Item &item, const Item &other) |
virtual QSet< QByteArray > | availableParts (const Item &item) const |
Detailed Description
The extended base class for item type serializer plugins.
- Since:
- 4.4
Definition at line 183 of file itemserializerplugin.h.
Constructor & Destructor Documentation
virtual Akonadi::ItemSerializerPluginV2::~ItemSerializerPluginV2 | ( | ) | [virtual] |
Destroys the item serializer plugin.
Member Function Documentation
Merges the payload parts in other
into item
.
The default implementation is slow as it requires serializing other
, and deserializing item
multiple times. Reimplementing this is recommended if your type uses payload parts.
- Since:
- 4.4
virtual QSet<QByteArray> Akonadi::ItemSerializerPluginV2::availableParts | ( | const Item & | item | ) | const [virtual] |
Returns the parts available in the item item
.
This should be reimplemented to return available parts.
The default implementation returns an empty set if the item has a payload, and a set containing Item::FullPayload if the item has no payload.
- Since:
- 4.4
The documentation for this class was generated from the following file: