summaryrefslogtreecommitdiffstats
path: root/sigtools/PluginLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigtools/PluginLoader.cpp')
-rw-r--r--sigtools/PluginLoader.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/sigtools/PluginLoader.cpp b/sigtools/PluginLoader.cpp
index d6f039e9..051632e6 100644
--- a/sigtools/PluginLoader.cpp
+++ b/sigtools/PluginLoader.cpp
@@ -20,6 +20,7 @@
#include "PluginLoader_p.h"
// Sigencore plugin includes
+#include <sigencore/plugins/PluginBase.h>
#include <sigencore/plugins/ArenaPlugin.h>
#include <sigencore/plugins/CanvasPlugin.h>
@@ -46,6 +47,11 @@ KService::Ptr PluginLoader::service(const QString& type, const QString& name)
return loader->service(type, name);
}
+PluginBase* PluginLoader::plugin(const QString& type, const QString& name)
+{
+ return loader->factory(type, name);
+}
+
ArenaPlugin* PluginLoader::pluginForArena(const QString& arena)
{
return qobject_cast<ArenaPlugin*>(loader->factory("Arena", arena));
@@ -120,7 +126,7 @@ KService::Ptr PluginLoader::Private::service(const QString& type, const QString&
return KService::Ptr();
}
-QObject* PluginLoader::Private::factory(const QString& type, const QString& name)
+PluginBase* PluginLoader::Private::factory(const QString& type, const QString& name)
{
if (!m_available.contains(type))
refresh(type);