author | zecke <zecke> | 2004-05-12 19:08:58 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-05-12 19:08:58 (UTC) |
commit | 00efb6af5ff15e43913f91fcc5c33805233c7e91 (patch) (unidiff) | |
tree | 9e661ed6a94e40e642a5d03f56e46125d0eaa852 /libopie2/opiecore | |
parent | 7a9cabb330284777113bb544139843dcf0593628 (diff) | |
download | opie-00efb6af5ff15e43913f91fcc5c33805233c7e91.zip opie-00efb6af5ff15e43913f91fcc5c33805233c7e91.tar.gz opie-00efb6af5ff15e43913f91fcc5c33805233c7e91.tar.bz2 |
As pointed out on irc the template functions fail to compile.
I've removed the method in the base class so remove in OPluginLoader as well
Evaluate if we want to allow loading of a 'path' + QUUid or only via
OPluginItem
-rw-r--r-- | libopie2/opiecore/opluginloader.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libopie2/opiecore/opluginloader.h b/libopie2/opiecore/opluginloader.h index 421d1f6..6166b75 100644 --- a/libopie2/opiecore/opluginloader.h +++ b/libopie2/opiecore/opluginloader.h | |||
@@ -133,14 +133,12 @@ private: | |||
133 | class OPluginLoader : public OGenericPluginLoader { | 133 | class OPluginLoader : public OGenericPluginLoader { |
134 | public: | 134 | public: |
135 | OPluginLoader( const QString& name, bool sorted = false ); | 135 | OPluginLoader( const QString& name, bool sorted = false ); |
136 | ~OPluginLoader(); | 136 | ~OPluginLoader(); |
137 | 137 | ||
138 | template<class IFace> | 138 | template<class IFace> |
139 | IFace* load( const QString& name, const QUuid& ); | ||
140 | template<class IFace> | ||
141 | IFace* load( const OPluginItem& item, const QUuid& ); | 139 | IFace* load( const OPluginItem& item, const QUuid& ); |
142 | }; | 140 | }; |
143 | 141 | ||
144 | /** | 142 | /** |
145 | * \brief A class to manager order and activation of plugins | 143 | * \brief A class to manager order and activation of plugins |
146 | * | 144 | * |
@@ -167,16 +165,12 @@ public: | |||
167 | void setEnabled( const OPluginItem&, bool = true); | 165 | void setEnabled( const OPluginItem&, bool = true); |
168 | 166 | ||
169 | void load(); | 167 | void load(); |
170 | void save(); | 168 | void save(); |
171 | }; | 169 | }; |
172 | 170 | ||
173 | template<class IFace> | ||
174 | IFace* OPluginLoader::load( const QString& name, const QUuid& uid ) { | ||
175 | return static_cast<IFace*>( OGenericPluginLoader::load( item, uid ) ); | ||
176 | } | ||
177 | 171 | ||
178 | template<class IFace> | 172 | template<class IFace> |
179 | IFace* OPluginLoader::load( const OPluginItem& item, const QUuid& uid ) { | 173 | IFace* OPluginLoader::load( const OPluginItem& item, const QUuid& uid ) { |
180 | return static_cast<IFace*>( OGenericPluginLoader::load( item, uid ) ); | 174 | return static_cast<IFace*>( OGenericPluginLoader::load( item, uid ) ); |
181 | } | 175 | } |
182 | 176 | ||