diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2020-10-26 21:39:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-26 21:39:25 +0100 |
| commit | 57e67eeb392ea6d3d4af69ca40538147cc608e0f (patch) | |
| tree | 69976cb8870e1bffda3d149627123e1ecf24c654 /src/modlistproxy.cpp | |
| parent | d42399e419fa6b769e343b8cf77480b6ac172b0f (diff) | |
| parent | 61308ae2a6ed1123d3043659e72e300dc5c68cca (diff) | |
Merge pull request #1269 from Holt59/imodlist-updates
IModList updates
Diffstat (limited to 'src/modlistproxy.cpp')
| -rw-r--r-- | src/modlistproxy.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/modlistproxy.cpp b/src/modlistproxy.cpp index 7ec00c49..8fcbdbdf 100644 --- a/src/modlistproxy.cpp +++ b/src/modlistproxy.cpp @@ -17,6 +17,21 @@ QStringList ModListProxy::allMods() const return m_Proxied->allMods(); } +QStringList ModListProxy::allModsByProfilePriority(MOBase::IProfile* profile) const +{ + return m_Proxied->allModsByProfilePriority(profile); +} + +IModInterface* ModListProxy::getMod(const QString& name) const +{ + return m_Proxied->getMod(name); +} + +bool ModListProxy::removeMod(MOBase::IModInterface* mod) +{ + return m_Proxied->removeMod(mod); +} + IModList::ModStates ModListProxy::state(const QString& name) const { return m_Proxied->state(name); @@ -42,6 +57,16 @@ bool ModListProxy::setPriority(const QString& name, int newPriority) return m_Proxied->setPriority(name, newPriority); } +bool ModListProxy::onModInstalled(const std::function<void(IModInterface*)>& func) +{ + return m_Proxied->onModInstalled(MOShared::callIfPluginActive(m_OrganizerProxy, func)); +} + +bool ModListProxy::onModRemoved(const std::function<void(QString const&)>& func) +{ + return m_Proxied->onModRemoved(MOShared::callIfPluginActive(m_OrganizerProxy, func)); +} + bool ModListProxy::onModStateChanged(const std::function<void(const std::map<QString, ModStates>&)>& func) { return m_Proxied->onModStateChanged(MOShared::callIfPluginActive(m_OrganizerProxy, func)); |
