• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • ItemSerializerPluginV2
Public Member Functions | List of all members
Akonadi::ItemSerializerPluginV2 Class Reference

#include <itemserializerplugin.h>

Inheritance diagram for Akonadi::ItemSerializerPluginV2:
Inheritance graph
[legend]

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

ItemSerializerPluginV2::~ItemSerializerPluginV2 ( )
virtual

Destroys the item serializer plugin.

Definition at line 47 of file itemserializerplugin.cpp.

Member Function Documentation

void ItemSerializerPluginV2::apply ( Item &  item,
const Item &  other 
)
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
itemreceives merged parts from other
otherthe paylod parts to merge into item
Since
4.4

Definition at line 59 of file itemserializerplugin.cpp.

QSet< QByteArray > 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.

Parameters
itemthe item for which to list payload parts
Since
4.4

Definition at line 51 of file itemserializerplugin.cpp.


The documentation for this class was generated from the following files:
  • itemserializerplugin.h
  • itemserializerplugin.cpp
This file is part of the KDE documentation.
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.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal