summaryrefslogtreecommitdiff
path: root/src/plugincontainer.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-04 13:41:06 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2020-12-04 13:41:06 +0100
commita1ab717e9e4fd72071cd01d9ceb74e7ba10ffafd (patch)
tree60fb738dac73bd02792c8dc5bf0313597dfe51e4 /src/plugincontainer.h
parent7a3bc0cd23e637d66a1f78809f7229e665391cdb (diff)
Minor cleaning (comments, names).
Diffstat (limited to 'src/plugincontainer.h')
-rw-r--r--src/plugincontainer.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/plugincontainer.h b/src/plugincontainer.h
index bd19e7ef..4eb30db6 100644
--- a/src/plugincontainer.h
+++ b/src/plugincontainer.h
@@ -204,22 +204,19 @@ public:
*/
void startPlugins(IUserInterface* userInterface);
+ /**
+ * @brief Load, unload or reload the plugin at the given path.
+ *
+ */
void loadPlugin(QString const& filepath);
void unloadPlugin(QString const& filepath);
void reloadPlugin(QString const& filepath);
- void loadPlugins();
-
/**
- * @brief Find the game plugin corresponding to the given name.
+ * @brief Load all plugins.
*
- * @param name The name of the game to find a plugin for (as returned by
- * IPluginGame::gameName()).
- *
- * @return the game plugin for the given name, or a null pointer if no
- * plugin exists for this game.
*/
- MOBase::IPluginGame *managedGame(const QString &name) const;
+ void loadPlugins();
/**
* @brief Retrieve the list of plugins of the given type.
@@ -272,6 +269,17 @@ public:
MOBase::IPlugin* plugin(MOBase::IPluginFileMapper* mapper) const;
/**
+ * @brief Find the game plugin corresponding to the given name.
+ *
+ * @param name The name of the game to find a plugin for (as returned by
+ * IPluginGame::gameName()).
+ *
+ * @return the game plugin for the given name, or a null pointer if no
+ * plugin exists for this game.
+ */
+ MOBase::IPluginGame* game(const QString& name) const;
+
+ /**
* @return the IPlugin interface to the currently managed game.
*/
MOBase::IPlugin* managedGame() const;