akonadi
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) |
void | overridePluginLookup (QObject *plugin) |
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.
Enumeration Type Documentation
◆ Option
enum Akonadi::TypePluginLoader::Option |
Definition at line 48 of file typepluginloader_p.h.
Function Documentation
◆ defaultObjectForMimeType()
QObject * Akonadi::TypePluginLoader::defaultObjectForMimeType | ( | const QString & | mimetype | ) |
Returns the default type plugin object that matches the given mimetype
.
Definition at line 453 of file typepluginloader.cpp.
◆ defaultPluginForMimeType()
ItemSerializerPlugin * Akonadi::TypePluginLoader::defaultPluginForMimeType | ( | const QString & | mimetype | ) |
Returns the default item serializer plugin that matches the given mimetype
.
Definition at line 470 of file typepluginloader.cpp.
◆ objectForMimeTypeAndClass()
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 441 of file typepluginloader.cpp.
◆ overridePluginLookup()
void Akonadi::TypePluginLoader::overridePluginLookup | ( | QObject * | plugin | ) |
Override the plugin-lookup with plugin
.
After calling this each lookup will always return plugin
. This is useful to inject a special plugin for testing purposes. To reset the plugin, set to 0.
- Since
- 4.12
Definition at line 476 of file typepluginloader.cpp.
◆ pluginForMimeTypeAndClass()
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 457 of file typepluginloader.cpp.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.