blob: 486564a48cc205cced833419c4a9e9c0193f774b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef MODLISTPROXY_H
#define MODLISTPROXY_H
#include <imodlist.h>
class OrganizerProxy;
class ModListProxy : public MOBase::IModList
{
public:
ModListProxy(OrganizerProxy* oproxy, IModList* modlist);
virtual ~ModListProxy() { }
QString displayName(const QString& internalName) const override;
QStringList allMods() const override;
QStringList allModsByProfilePriority(MOBase::IProfile* profile = nullptr) const override;
bool removeMod(MOBase::IModInterface* mod) override;
ModStates state(const QString& name) const override;
bool setActive(const QString& name, bool active) override;
int setActive(const QStringList& names, bool active) override;
int priority(const QString& name) const override;
bool setPriority(const QString& name, int newPriority) override;
bool onModInstalled(const std::function<void(MOBase::IModInterface *)>& func) override;
bool onModRemoved(const std::function<void(QString const&)>& func) override;
bool onModStateChanged(const std::function<void(const std::map<QString, ModStates>&)>& func) override;
bool onModMoved(const std::function<void(const QString&, int, int)>& func) override;
private:
OrganizerProxy* m_OrganizerProxy;
IModList* m_Proxied;
};
#endif // ORGANIZERPROXY_H
|