diff options
Diffstat (limited to 'sigtools/PluginLoader_p.h')
-rw-r--r-- | sigtools/PluginLoader_p.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sigtools/PluginLoader_p.h b/sigtools/PluginLoader_p.h index d48d57df..acd3125e 100644 --- a/sigtools/PluginLoader_p.h +++ b/sigtools/PluginLoader_p.h @@ -28,6 +28,15 @@ #include <QtCore/QObject> #include <QtCore/QPair> +// Forward declarations +namespace Sigencore +{ +namespace Plugins +{ +class PluginBase; +} +} + namespace Sigtools { namespace PluginLoader @@ -39,9 +48,9 @@ class SIGTOOLS_NO_EXPORT Private : public QObject public: void refresh(const QString& type); KService::Ptr service(const QString& type, const QString& name); - QObject* factory(const QString& type, const QString& name); + Sigencore::Plugins::PluginBase* factory(const QString& type, const QString& name); - typedef QPair<KService::Ptr, QObject*> Service; + typedef QPair<KService::Ptr, Sigencore::Plugins::PluginBase*> Service; typedef QMap<QString, Service> PluginList; QMap<QString, PluginList> m_available; }; |