diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-04 08:50:31 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-04 08:50:31 +0100 |
| commit | a30d49f4fc845164ef6bba4d2a834efce1dc01d7 (patch) | |
| tree | 5aa8becd18a2eae3795e602db0f499a864dab40f /src/organizerproxy.h | |
| parent | f229dbaaa7f516dc1958d0a0555b47cb17136377 (diff) | |
Avoid duplicating code to simulate startup.
Diffstat (limited to 'src/organizerproxy.h')
| -rw-r--r-- | src/organizerproxy.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/organizerproxy.h b/src/organizerproxy.h index fb463822..c52f2730 100644 --- a/src/organizerproxy.h +++ b/src/organizerproxy.h @@ -21,11 +21,15 @@ public: OrganizerProxy(OrganizerCore *organizer, PluginContainer *pluginContainer, MOBase::IPlugin *plugin);
~OrganizerProxy();
+public:
+
/**
* @return the plugin corresponding to this proxy.
*/
MOBase::IPlugin* plugin() const { return m_Plugin; }
+public: // IOrganizer interface
+
virtual MOBase::IModRepositoryBridge *createNexusBridge() const;
virtual QString profileName() const;
virtual QString profilePath() const;
@@ -83,6 +87,19 @@ protected: // The container needs access to some callbacks to simulate startup.
friend class PluginContainer;
+ /**
+ * @brief Connect the signals from this proxy and all the child proxies (plugin list, mod
+ * list, etc.) to the actual implementation. Before this call, plugins can register signals
+ * but they won't be triggered.
+ */
+ void connectSignals();
+
+ /**
+ * @brief Disconnect the signals from this proxy and all the child proxies (plugin list, mod
+ * list, etc.) from the actual implementation.
+ */
+ void disconnectSignals();
+
private:
OrganizerCore *m_Proxied;
|
