From a30d49f4fc845164ef6bba4d2a834efce1dc01d7 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Fri, 4 Dec 2020 08:50:31 +0100 Subject: Avoid duplicating code to simulate startup. --- src/organizerproxy.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/organizerproxy.h') 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; -- cgit v1.3.1