From 62ad5bdb02a20117691078bd6ffe0914e68709bf Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 26 Mar 2009 07:31:03 -0400 Subject: Use PluginBase in storage in PluginLoader --- sigtools/PluginLoader.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sigtools/PluginLoader.cpp') 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 #include #include @@ -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(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); -- cgit