|
1 | 1 | #include "organizerproxy.h" |
2 | 2 |
|
3 | 3 | #include "downloadmanagerproxy.h" |
| 4 | +#include "extensionlistproxy.h" |
| 5 | +#include "extensionmanager.h" |
4 | 6 | #include "glob_matching.h" |
5 | 7 | #include "modlistproxy.h" |
6 | 8 | #include "organizercore.h" |
|
17 | 19 | using namespace MOBase; |
18 | 20 | using namespace MOShared; |
19 | 21 |
|
20 | | -OrganizerProxy::OrganizerProxy(OrganizerCore* organizer, PluginManager* pluginManager, |
21 | | - MOBase::IPlugin* plugin) |
| 22 | +OrganizerProxy::OrganizerProxy(OrganizerCore* organizer, |
| 23 | + const ExtensionManager& extensionManager, |
| 24 | + PluginManager* pluginManager, MOBase::IPlugin* plugin) |
22 | 25 | : m_Proxied(organizer), m_PluginManager(pluginManager), m_Plugin(plugin), |
23 | 26 | m_DownloadManagerProxy( |
24 | 27 | std::make_unique<DownloadManagerProxy>(this, organizer->downloadManager())), |
| 28 | + m_ExtensionListProxy( |
| 29 | + std::make_unique<ExtensionListProxy>(this, extensionManager)), |
25 | 30 | m_ModListProxy(std::make_unique<ModListProxy>(this, organizer->modList())), |
26 | 31 | m_PluginListProxy( |
27 | 32 | std::make_unique<PluginListProxy>(this, organizer->pluginList())) |
@@ -130,6 +135,11 @@ void OrganizerProxy::modDataChanged(IModInterface* mod) |
130 | 135 | m_Proxied->modDataChanged(mod); |
131 | 136 | } |
132 | 137 |
|
| 138 | +MOBase::IExtensionList& OrganizerProxy::extensionList() const |
| 139 | +{ |
| 140 | + return *m_ExtensionListProxy; |
| 141 | +} |
| 142 | + |
133 | 143 | bool OrganizerProxy::isPluginEnabled(QString const& pluginName) const |
134 | 144 | { |
135 | 145 | return m_PluginManager->isEnabled(pluginName); |
|
0 commit comments