diff options
Diffstat (limited to 'src/pluginlist.h')
| -rw-r--r-- | src/pluginlist.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/pluginlist.h b/src/pluginlist.h index d041172f..57b78a12 100644 --- a/src/pluginlist.h +++ b/src/pluginlist.h @@ -86,6 +86,7 @@ public: }; typedef boost::signals2::signal<void ()> SignalRefreshed; + typedef boost::signals2::signal<void (const QString &, int, int)> SignalPluginMoved; public: @@ -103,16 +104,24 @@ public: * * @param profileName name of the current profile * @param baseDirectory the root directory structure representing the virtual data directory + * @param pluginsFile file that stores the list of enabled plugins + * @param loadOrderFile file that stored the load order (not an official file but used by many tools for skyrim) + * @param lockedOrderFile list of plugins that shouldn't change load order * @todo the profile is not used? If it was, we should pass the Profile-object instead **/ - void refresh(const QString &profileName, const MOShared::DirectoryEntry &baseDirectory, const QString &pluginsFile, const QString &loadOrderFile, const QString &lockedOrderFile); + void refresh(const QString &profileName + , const MOShared::DirectoryEntry &baseDirectory + , const QString &pluginsFile + , const QString &loadOrderFile + , const QString &lockedOrderFile); /** * @brief enable a plugin based on its name * * @param name name of the plugin to enable + * @param enable set to true to enable the esp, false to disable it **/ - void enableESP(const QString &name); + void enableESP(const QString &name, bool enable = true); /** * @brief test if a plugin is enabled @@ -166,8 +175,11 @@ public: * @param deleterFileName file to receive a list of files to hide from the virtual data tree. This is used to hide unchecked plugins if "hideUnchecked" is true * @param hideUnchecked if true, plugins that aren't enabled will be hidden from the virtual data directory **/ - void saveTo(const QString &pluginFileName, const QString &loadOrderFileName, const QString &lockedOrderFileName, - const QString &deleterFileName, bool hideUnchecked) const; + void saveTo(const QString &pluginFileName + , const QString &loadOrderFileName + , const QString &lockedOrderFileName + , const QString &deleterFileName + , bool hideUnchecked) const; /** * @brief save the current load order @@ -208,6 +220,7 @@ public: virtual bool isMaster(const QString &name) const; virtual QString origin(const QString &name) const; virtual bool onRefreshed(const std::function<void()> &callback); + virtual bool onPluginMoved(const std::function<void (const QString &, int, int)> &func); public: // implementation of the QAbstractTableModel interface @@ -322,6 +335,8 @@ private: QTemporaryFile m_TempFile; + SignalPluginMoved m_PluginMoved; + }; |
