• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

itemserializer.h

00001 /*
00002     Copyright (c) 2007 Till Adam <adam@kde.org>
00003     Copyright (c) 2007 Volker Krause <vkrause@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or modify it
00006     under the terms of the GNU Library General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or (at your
00008     option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful, but WITHOUT
00011     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013     License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to the
00017     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018     02110-1301, USA.
00019 */
00020 
00021 #ifndef AKONADI_ITEM_SERIALIZER_H
00022 #define AKONADI_ITEM_SERIALIZER_H
00023 
00024 #include <QtCore/QByteArray>
00025 #include <QtCore/QSet>
00026 
00027 #include "akonadiprivate_export.h"
00028 
00029 class QIODevice;
00030 
00031 namespace Akonadi {
00032 
00033 class Item;
00034 class ItemSerializerPlugin;
00035 
00040 class AKONADI_TESTS_EXPORT ItemSerializer
00041 {
00042   public:
00044       static void deserialize( Item& item, const QByteArray& label, const QByteArray& data, int version );
00046       static void deserialize( Item& item, const QByteArray& label, QIODevice& data, int version );
00048       static void serialize( const Item& item, const QByteArray& label, QByteArray& data, int &version );
00050       static void serialize( const Item& item, const QByteArray& label, QIODevice& data, int &version );
00051 
00053       static QSet<QByteArray> parts( const Item &item );
00054 
00055   private:
00056       static ItemSerializerPlugin& pluginForMimeType( const QString& mimetype );
00057 };
00058 
00059 }
00060 
00061 #endif

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal