diff options
Diffstat (limited to 'data/plugin/pluginmanager.h')
-rw-r--r-- | data/plugin/pluginmanager.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/data/plugin/pluginmanager.h b/data/plugin/pluginmanager.h index 8e2dba0d..b93fd6d2 100644 --- a/data/plugin/pluginmanager.h +++ b/data/plugin/pluginmanager.h @@ -42,12 +42,6 @@ public: bool loadPlugins(QString pluginDir); /*! - * \brief Initializes the instance type plugins. - * \return True if successful. False on failure. - */ - bool initInstanceTypes(); - - /*! * \brief Checks how many plugins are loaded. * \return The number of plugins. */ @@ -58,12 +52,19 @@ public: * \param index The index of the plugin to get. * \return The plugin at the given index. */ - QObject *getPlugin(int index); + QPluginLoader *getPlugin(int index); + + /*! + * \brief Initializes and registers all the instance types. + * This is done by going through the plugin list and registering all of the + * plugins that derive from the InstanceTypeInterface with the InstanceLoader. + */ + void initInstanceTypes(); private: PluginManager(); - QList<QObject *> m_plugins; + QList<QPluginLoader *> m_plugins; static PluginManager manager; }; |