diff options
| author | Tannin <devnull@localhost> | 2013-11-01 14:59:25 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-11-01 14:59:25 +0100 |
| commit | d1594798e6e78bb329e744a72e92d3f292f38a20 (patch) | |
| tree | dc3b8c822559655ab717841b1e22bd4c65dfff6e /src/modlist.h | |
| parent | 09bd3dbead9afd6a57684908e77aba6960ad464d (diff) | |
- added a new diagnosis to detect potential problems in regards to esp vs. asset ordering (not fully functional yet)
- new plugin interfaces to the mod list
- plugins can now query the origin (mod) of a esp/esm
- bugfix: potential access to profile before one was activated
- bugfix: regression in previous (not-yet-released) commit prevented changes to bsa list from being saved
Diffstat (limited to 'src/modlist.h')
| -rw-r--r-- | src/modlist.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/modlist.h b/src/modlist.h index 7e76d677..cdaa24ca 100644 --- a/src/modlist.h +++ b/src/modlist.h @@ -26,6 +26,8 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "modinfo.h" #include "profile.h" +#include <imodlist.h> + #include <QFile> #include <QListWidget> #include <QNetworkReply> @@ -41,7 +43,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. * This is used in a view in the main window of MO. It combines general information about * the mods from ModInfo with status information from the Profile **/ -class ModList : public QAbstractItemModel +class ModList : public QAbstractItemModel, public MOBase::IModList { Q_OBJECT @@ -92,6 +94,17 @@ public: void changeModPriority(int sourceIndex, int newPriority); +public: + + /// \copydoc MOBase::IModList::state + virtual ModState state(const QString &name) const; + + /// \copydoc MOBase::IModList::priority + virtual int priority(const QString &name) const; + + /// \copydoc MOBase::IModList::setPriority + virtual bool setPriority(const QString &name, int newPriority); + public: // implementation of virtual functions of QAbstractItemModel virtual int rowCount(const QModelIndex &parent = QModelIndex()) const; |
