libplasma
dataenginemanager.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PLASMA_DATAENGINEMANAGER_H
00021 #define PLASMA_DATAENGINEMANAGER_H
00022
00023 #include <QtCore/QHash>
00024 #include <plasma/dataengine.h>
00025
00026 namespace Plasma
00027 {
00028
00035 class PLASMA_EXPORT DataEngineManager: public QObject
00036 {
00037 Q_OBJECT
00038 public:
00042 static DataEngineManager* self();
00043
00048 DataEngineManager();
00049 ~DataEngineManager();
00050
00058 Plasma::DataEngine* dataEngine(const QString& name) const;
00059
00069 Plasma::DataEngine* loadDataEngine(const QString& name);
00070
00075 void unloadDataEngine(const QString& name);
00076
00080 static QStringList knownEngines();
00081
00082 private:
00083 class Private;
00084 Private* const d;
00085 };
00086
00087 }
00088
00089 #endif // multiple inclusion guard