summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/opluginloader.h6
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
@@ -127,26 +127,24 @@ private:
127 * On crash the safe mode is activated for the next run. You can then decide 127 * On crash the safe mode is activated for the next run. You can then decide
128 * if you want to load plugins or come up with the Configuration on 128 * if you want to load plugins or come up with the Configuration on
129 * next start yourself then. 129 * next start yourself then.
130 * 130 *
131 * @since 1.2 131 * @since 1.2
132 */ 132 */
133class OPluginLoader : public OGenericPluginLoader { 133class OPluginLoader : public OGenericPluginLoader {
134public: 134public:
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 *
147 * Manage order and activation. This is used by the Opie::Ui::OPluginConfig 145 * Manage order and activation. This is used by the Opie::Ui::OPluginConfig
148 * This class controls the activation and order of plugins depending 146 * This class controls the activation and order of plugins depending
149 * on the OPluginLoader you supply. 147 * on the OPluginLoader you supply.
150 * 148 *
151 * @see OPluginConfig 149 * @see OPluginConfig
152 * 150 *
@@ -161,27 +159,23 @@ public:
161 QString name(); 159 QString name();
162 void setName( const QString& ); 160 void setName( const QString& );
163 161
164 void setPosition( const OPluginItem& ); 162 void setPosition( const OPluginItem& );
165 void enable( const OPluginItem& ); 163 void enable( const OPluginItem& );
166 void disable( const OPluginItem& ); 164 void disable( const OPluginItem& );
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
173template<class IFace>
174IFace* OPluginLoader::load( const QString& name, const QUuid& uid ) {
175 return static_cast<IFace*>( OGenericPluginLoader::load( item, uid ) );
176}
177 171
178template<class IFace> 172template<class IFace>
179IFace* OPluginLoader::load( const OPluginItem& item, const QUuid& uid ) { 173IFace* 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
183} 177}
184} 178}
185 179
186 180
187#endif 181#endif