• Skip to content
  • Skip to link menu
KDE 4.8 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • TypePluginLoader
Enumerations | Functions
Akonadi::TypePluginLoader Namespace Reference

Enumerations

enum  Option { NoOptions, NoDefault = 1, _LastOption, OptionMask = 2*_LastOption-1 }

Functions

QObject * defaultObjectForMimeType (const QString &mimetype)
ItemSerializerPlugin * defaultPluginForMimeType (const QString &mimetype)
QObject * objectForMimeTypeAndClass (const QString &mimetype, const QVector< int > &metaTypeIds, Options options=NoOptions)
ItemSerializerPlugin * pluginForMimeTypeAndClass (const QString &mimetype, const QVector< int > &metaTypeIds, Options options=NoOptions)

Detailed Description

With KDE 4.6 we are on the way to change the ItemSerializer plugins into general TypePlugins which provide several type specific actions, namely:

  • Serializing/Deserializing of payload
  • Comparing two payloads and reporting the differences

To share the code of loading the plugins and finding the right plugin for a given mime type the old code from ItemSerializer has been extracted into the pluginForMimeType() method inside the TypePluginLoader namespace.


Function Documentation

QObject * Akonadi::TypePluginLoader::defaultObjectForMimeType ( const QString &  mimetype)

Returns the default type plugin object that matches the given mimetype.

Definition at line 400 of file typepluginloader.cpp.

ItemSerializerPlugin * Akonadi::TypePluginLoader::defaultPluginForMimeType ( const QString &  mimetype)

Returns the default item serializer plugin that matches the given mimetype.

Definition at line 417 of file typepluginloader.cpp.

QObject * Akonadi::TypePluginLoader::objectForMimeTypeAndClass ( const QString &  mimetype,
const QVector< int > &  metaTypeIds,
Options  options = NoOptions 
)

Returns the type plugin object that matches the given mimetype, and any of the classes described by metaTypeIds.

Definition at line 388 of file typepluginloader.cpp.

ItemSerializerPlugin * Akonadi::TypePluginLoader::pluginForMimeTypeAndClass ( const QString &  mimetype,
const QVector< int > &  metaTypeIds,
Options  options = NoOptions 
)

Returns the item serializer plugin that matches the given mimetype, and any of the classes described by metaTypeIds.

Definition at line 404 of file typepluginloader.cpp.

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.6.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