akonadi
#include <itemserializer_p.h>
Static Public Member Functions | |
| static void | apply (Item &item, const Item &other) | 
| static QSet< QByteArray > | availableParts (const Item &item) | 
| static Item | convert (const Item &item, int metaTypeId) | 
| static void | deserialize (Item &item, const QByteArray &label, const QByteArray &data, int version, bool external) | 
| static void | deserialize (Item &item, const QByteArray &label, QIODevice &data, int version) | 
| static void | overridePluginLookup (QObject *plugin) | 
| static QSet< QByteArray > | parts (const Item &item) | 
| static void | serialize (const Item &item, const QByteArray &label, QByteArray &data, int &version) | 
| static void | serialize (const Item &item, const QByteArray &label, QIODevice &data, int &version) | 
Detailed Description
Serialization/Deserialization of item parts, serializer plugin management.
Definition at line 43 of file itemserializer_p.h.
Member Function Documentation
      
  | 
  static | 
Throws ItemSerializerException on failure.
- Parameters
 - 
  
item the item to apply to other the item to get values from  
- Since
 - 4.4
 
Definition at line 146 of file itemserializer.cpp.
      
  | 
  static | 
Returns a list of parts available remotely in the item payload.
- Parameters
 - 
  
item the item for which to list payload parts  
- Since
 - 4.4
 
Definition at line 180 of file itemserializer.cpp.
      
  | 
  static | 
Tries to convert the payload in item into type with metatype-id metaTypeId.
Throws ItemSerializerException or returns an Item w/o payload on failure.
- Parameters
 - 
  
item the item to convert metaTypeID the meta type id used to convert items payload  
- Since
 - 4.6
 
Definition at line 196 of file itemserializer.cpp.
      
  | 
  static | 
throws ItemSerializerException on failure
Definition at line 84 of file itemserializer.cpp.
      
  | 
  static | 
throws ItemSerializerException on failure
Definition at line 117 of file itemserializer.cpp.
      
  | 
  static | 
Override the plugin-lookup with plugin. 
After calling this each lookup will always return plugin. This is useful to inject a special plugin for testing purposes. To reset the plugin, set to 0.
- Since
 - 4.12
 
Definition at line 226 of file itemserializer.cpp.
      
  | 
  static | 
Returns a list of parts available in the item payload.
Definition at line 173 of file itemserializer.cpp.
      
  | 
  static | 
throws ItemSerializerException on failure
Definition at line 127 of file itemserializer.cpp.
      
  | 
  static | 
throws ItemSerializerException on failure
Definition at line 138 of file itemserializer.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference