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

kapptemplate

  • sources
  • kde-4.12
  • kdesdk
  • kapptemplate
  • templates
  • C++
  • akonadiserializer
akonadi_serializer_%{APPNAMELC}.cpp
Go to the documentation of this file.
1 #include "akonadi_serializer_%{APPNAMELC}.h"
2 
3 #include <akonadi/item.h>
4 
5 #include <QtCore/qplugin.h>
6 
7 using namespace Akonadi;
8 
9 bool SerializerPlugin%{APPNAME}::deserialize( Item& item, const QByteArray& label, QIODevice& data, int version )
10 {
11  Q_UNUSED( item );
12  Q_UNUSED( label );
13  Q_UNUSED( data );
14  Q_UNUSED( version );
15 
16  // TODO Implement this
17 
18  return false;
19 }
20 
21 void SerializerPlugin%{APPNAME}::serialize( const Item& item, const QByteArray& label, QIODevice& data, int &version )
22 {
23  Q_UNUSED( item );
24  Q_UNUSED( label );
25  Q_UNUSED( data );
26  Q_UNUSED( version );
27 
28  // TODO Implement this
29 }
30 
31 QSet<QByteArray> SerializerPlugin%{APPNAME}::parts( const Item &item ) const
32 {
33  // only need to reimplement this when implementing partial serialization
34  // i.e. when using the "label" parameter of the other two methods
35  return ItemSerializerPlugin::parts( item );
36 }
37 
38 Q_EXPORT_PLUGIN2( akonadi_serializer_%{APPNAMELC}, Akonadi::SerializerPlugin%{APPNAME} )
39 
40 #include "akonadi_serializer_%{APPNAMELC}.moc"
akonadi_serializer_%{APPNAMELC}.h
Item
APPNAME
main APPNAME
version
static const char version[]
Definition: main.cpp:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapptemplate

Skip menu "kapptemplate"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

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