diff options
Diffstat (limited to 'sigtools/PluginLoader_p.h')
-rw-r--r-- | sigtools/PluginLoader_p.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sigtools/PluginLoader_p.h b/sigtools/PluginLoader_p.h new file mode 100644 index 00000000..c333d8cf --- /dev/null +++ b/sigtools/PluginLoader_p.h @@ -0,0 +1,34 @@ +#ifndef SIGTOOLS_PLUGINLOADER_P +#define SIGTOOLS_PLUGINLOADER_P + +// Sigtools includes +#include "Global.h" + +// KDE includes +#include <KService> + +// Qt includes +#include <QtCore/QObject> +#include <QtCore/QPair> + +namespace Sigtools +{ +namespace PluginLoader +{ +class SIGTOOLS_NO_EXPORT Private : public QObject +{ + Q_OBJECT + + public: + void refresh(const QString& type); + KService::Ptr service(const QString& type, const QString& name); + QObject* factory(const QString& type, const QString& name); + + typedef QPair<KService::Ptr, QObject*> Service; + typedef QMap<QString, Service> PluginList; + QMap<QString, PluginList> m_available; +}; +} +} + +#endif |