akonadi
Akonadi::TypePluginLoader Namespace Reference
Functions | |
QObject * | objectForMimeType (const QString &mimetype) |
ItemSerializerPlugin * | pluginForMimeType (const QString &mimetype) |
Detailed Description
For internal use only.
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::objectForMimeType | ( | const QString & | mimetype | ) |
Returns the type plugin object that matches the given mimetype
.
Definition at line 187 of file typepluginloader.cpp.
ItemSerializerPlugin * Akonadi::TypePluginLoader::pluginForMimeType | ( | const QString & | mimetype | ) |
Returns the item serializer plugin that matches the given mimetype
.
Definition at line 213 of file typepluginloader.cpp.