akonadi
#include <itemserializerplugin.h>

Public Member Functions | |
| virtual | ~ItemSerializerPluginV2 () |
| virtual void | apply (Item &item, const Item &other) |
| virtual QSet< QByteArray > | availableParts (const Item &item) const |
Public Member Functions inherited from Akonadi::ItemSerializerPlugin | |
| virtual | ~ItemSerializerPlugin () |
| virtual bool | deserialize (Item &item, const QByteArray &label, QIODevice &data, int version)=0 |
| virtual QSet< QByteArray > | parts (const Item &item) const |
| virtual void | serialize (const Item &item, const QByteArray &label, QIODevice &data, int &version)=0 |
Additional Inherited Members | |
Static Public Member Functions inherited from Akonadi::ItemSerializerPlugin | |
| static void | overridePluginLookup (QObject *plugin) |
Detailed Description
The extended base class for item type serializer plugins.
- Since
- 4.4
Definition at line 193 of file itemserializerplugin.h.
Constructor & Destructor Documentation
|
virtual |
Destroys the item serializer plugin.
Definition at line 48 of file itemserializerplugin.cpp.
Member Function Documentation
|
virtual |
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.
- Parameters
-
item receives merged parts from otherother the paylod parts to merge into item
- Since
- 4.4
Definition at line 61 of file itemserializerplugin.cpp.
|
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.
- Parameters
-
item the item for which to list payload parts
- Since
- 4.4
Definition at line 52 of file itemserializerplugin.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from