summaryrefslogtreecommitdiff
path: root/src/plugincontainer.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-04 13:32:47 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2020-12-04 13:32:47 +0100
commit4118aef2a28964d1bffdb489bf2223fbd6f994db (patch)
treeccb86010b0d4193da2dc019e17ba8a0b45ef708e /src/plugincontainer.h
parenta30d49f4fc845164ef6bba4d2a834efce1dc01d7 (diff)
Remove disconnectPlugins() from OrganizerCore.
Diffstat (limited to 'src/plugincontainer.h')
-rw-r--r--src/plugincontainer.h47
1 files changed, 18 insertions, 29 deletions
diff --git a/src/plugincontainer.h b/src/plugincontainer.h
index d6503a43..bd19e7ef 100644
--- a/src/plugincontainer.h
+++ b/src/plugincontainer.h
@@ -209,7 +209,6 @@ public:
void reloadPlugin(QString const& filepath);
void loadPlugins();
- void unloadPlugins();
/**
* @brief Find the game plugin corresponding to the given name.
@@ -370,22 +369,30 @@ private:
friend class PluginRequirements;
- /**
- * @return the organizer proxy for the given plugin.
- */
+ // Unload all the plugins.
+ void unloadPlugins();
+
+ // Retrieve the organizer proxy for the given plugin.
OrganizerProxy* organizerProxy(MOBase::IPlugin* plugin) const;
- /**
- * @return the proxy plugin that instantiated the given plugin, or a null pointer
- * if the plugin was not instantiated by a proxy.
- */
+ // Retrieve the proxy plugin that instantiated the given plugin, or a null pointer
+ // if the plugin was not instantiated by a proxy.
MOBase::IPluginProxy* pluginProxy(MOBase::IPlugin* plugin) const;
- /**
- * @return the path to the file or folder corresponding to the plugin.
- */
+ // Retrieve the path to the file or folder corresponding to the plugin.
QString filepath(MOBase::IPlugin* plugin) const;
+ // Load plugins from the given filepath using the given proxy.
+ std::vector<QObject*> loadProxied(const QString& filepath, MOBase::IPluginProxy* proxy);
+
+ // Load the Qt plugin from the given file.
+ QObject* loadQtPlugin(const QString& filepath);
+
+ // See startPlugins for more details. This is simply an intermediate function
+ // that can be used when loading plugins after initialization. This uses the
+ // user interface in m_UserInterface.
+ void startPluginsImpl(const std::vector<QObject*>& plugins) const;
+
/**
* @brief Unload the given plugin.
*
@@ -398,24 +405,6 @@ private:
void unloadPlugin(MOBase::IPlugin* plugin, QObject* object);
/**
- * @brief Load plugins from the given filepath using the given proxy.
- *
- * @param filepath Path to a folder/file containing plugin(s) that can be load by the given proxy.
- * @param proxy Proxy to use to load plugins.
- *
- * @return the list of created plugins.
- */
- std::vector<QObject*> loadProxied(const QString& filepath, MOBase::IPluginProxy* proxy);
-
- // Load the Qt plugin from the given file.
- QObject* loadQtPlugin(const QString& filepath);
-
- // See startPlugins for more details. This is simply an intermediate function
- // that can be used when loading plugins after initialization. This uses the
- // user interface in m_UserInterface.
- void startPluginsImpl(const std::vector<QObject*>& plugins) const;
-
- /**
* @brief Retrieved the (localized) names of interfaces implemented by the given
* plugin.
*