00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AKONADI_TYPEPLUGINLOADER_P_H
00022 #define AKONADI_TYPEPLUGINLOADER_P_H
00023
00024 #include <QtCore/qglobal.h>
00025
00026 class QObject;
00027 class QString;
00028 template <typename T>
00029 class QVector;
00030
00031 namespace Akonadi {
00032 class ItemSerializerPlugin;
00033
00046 namespace TypePluginLoader {
00047
00048 enum Option {
00049 NoOptions,
00050 NoDefault = 1,
00051
00052 _LastOption,
00053 OptionMask = 2*_LastOption-1
00054 };
00055 Q_DECLARE_FLAGS( Options, Option )
00056
00057
00058 #if 0
00059
00062 ItemSerializerPlugin* legacyPluginForMimeType( const QString &mimetype );
00063 #endif
00064
00068 ItemSerializerPlugin* defaultPluginForMimeType( const QString &mimetype );
00069
00074 ItemSerializerPlugin* pluginForMimeTypeAndClass( const QString &mimetype, const QVector<int> &metaTypeIds, Options options=NoOptions );
00075
00076 #if 0
00077
00080 QObject* legacyObjectForMimeType( const QString &mimetype );
00081 #endif
00082
00086 QObject* defaultObjectForMimeType( const QString &mimetype );
00087
00092 QObject* objectForMimeTypeAndClass( const QString &mimetype, const QVector<int> &metaTypeIds, Options options=NoOptions );
00093
00094 }
00095
00096 }
00097
00098 Q_DECLARE_OPERATORS_FOR_FLAGS( Akonadi::TypePluginLoader::Options )
00099
00100 #endif