diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2023-07-09 17:36:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-09 17:36:03 +0200 |
| commit | ef94aee28464039672b277243a0181ae93550d6c (patch) | |
| tree | 0575a68af5f154e9d6d0738edbaefb16a11d6f5c /src/modlistproxy.h | |
| parent | 7d6cb8528d20e36a4cee822263865ee2f7f32481 (diff) | |
| parent | 3de050e9c03e553f7ae3f780f6bd080a30ae123e (diff) | |
Merge pull request #1839 from Holt59/ci/initial-gh-action-for-build
Clang-Format + Github Workflow
Diffstat (limited to 'src/modlistproxy.h')
| -rw-r--r-- | src/modlistproxy.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/modlistproxy.h b/src/modlistproxy.h index d886d8b5..dc6fff9b 100644 --- a/src/modlistproxy.h +++ b/src/modlistproxy.h @@ -1,8 +1,8 @@ #ifndef MODLISTPROXY_H #define MODLISTPROXY_H -#include <imodlist.h> #include "modlist.h" +#include <imodlist.h> class OrganizerProxy; @@ -10,28 +10,29 @@ class ModListProxy : public MOBase::IModList { public: - ModListProxy(OrganizerProxy* oproxy, ModList* modlist); virtual ~ModListProxy(); QString displayName(const QString& internalName) const override; QStringList allMods() const override; - QStringList allModsByProfilePriority(MOBase::IProfile* profile = nullptr) const override; + QStringList + allModsByProfilePriority(MOBase::IProfile* profile = nullptr) const override; MOBase::IModInterface* getMod(const QString& name) const override; bool removeMod(MOBase::IModInterface* mod) override; - MOBase::IModInterface* renameMod(MOBase::IModInterface* mod, const QString& name) override; + MOBase::IModInterface* renameMod(MOBase::IModInterface* mod, + const QString& name) 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 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 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: - friend class OrganizerProxy; // See OrganizerProxy::connectSignals(). @@ -49,4 +50,4 @@ private: std::vector<boost::signals2::connection> m_Connections; }; -#endif // ORGANIZERPROXY_H +#endif // ORGANIZERPROXY_H |
