summaryrefslogtreecommitdiff
path: root/src/modlistproxy.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2020-12-07 08:40:23 +0100
committerGitHub <noreply@github.com>2020-12-07 08:40:23 +0100
commit904264e231a9aef485025cb45f1eb006b017aa1a (patch)
treec3ff682de4ac4761b8d36f0e96a96dce6a034706 /src/modlistproxy.h
parent0a6a5eb7868dde908e07ea12c7eb674b2063b950 (diff)
parent3264d7899e2560bce4591ab2142ee9d51bc7890c (diff)
Merge pull request #1313 from Holt59/load-plugin-without-restart
Implement loading/unloading of plugins without restarting
Diffstat (limited to 'src/modlistproxy.h')
-rw-r--r--src/modlistproxy.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/modlistproxy.h b/src/modlistproxy.h
index c805cf4e..162b0b43 100644
--- a/src/modlistproxy.h
+++ b/src/modlistproxy.h
@@ -2,6 +2,7 @@
#define MODLISTPROXY_H
#include <imodlist.h>
+#include "modlist.h"
class OrganizerProxy;
@@ -10,8 +11,8 @@ class ModListProxy : public MOBase::IModList
public:
- ModListProxy(OrganizerProxy* oproxy, IModList* modlist);
- virtual ~ModListProxy() { }
+ ModListProxy(OrganizerProxy* oproxy, ModList* modlist);
+ virtual ~ModListProxy();
QString displayName(const QString& internalName) const override;
QStringList allMods() const override;
@@ -30,8 +31,21 @@ public:
private:
+ friend class OrganizerProxy;
+
+ // See OrganizerProxy::connectSignals().
+ void connectSignals();
+ void disconnectSignals();
+
OrganizerProxy* m_OrganizerProxy;
- IModList* m_Proxied;
+ ModList* m_Proxied;
+
+ ModList::SignalModInstalled m_ModInstalled;
+ ModList::SignalModMoved m_ModMoved;
+ ModList::SignalModRemoved m_ModRemoved;
+ ModList::SignalModStateChanged m_ModStateChanged;
+
+ std::vector<boost::signals2::connection> m_Connections;
};
#endif // ORGANIZERPROXY_H