diff options
| author | Tannin <devnull@localhost> | 2014-08-18 23:00:25 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-08-18 23:00:25 +0200 |
| commit | 4b1e6683d258412dd6e02c55618ff158c749ab4a (patch) | |
| tree | 799ba86e4fabc44363ccc6dc14c4602b2b9e2919 /src/modinfo.h | |
| parent | 06701856f8eaed0f6bf802308c07952f0f0dd92e (diff) | |
- can now filter by mod content
- all files/directories that require write access can now be placed in AppData instead of the MO directory
Diffstat (limited to 'src/modinfo.h')
| -rw-r--r-- | src/modinfo.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/modinfo.h b/src/modinfo.h index 1097e5ba..d217fb9d 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -81,6 +81,8 @@ public: CONTENT_STRING
};
+ static const int NUM_CONTENT_TYPES = CONTENT_STRING + 1;
+
enum EHighlight {
HIGHLIGHT_NONE = 0,
HIGHLIGHT_INVALID = 1,
@@ -182,6 +184,13 @@ public: */
static ModInfo::Ptr createFromPlugin(const QString &espName, const QStringList &bsaNames, MOShared::DirectoryEntry **directoryStructure);
+ /**
+ * @brief retieve a name for one of the CONTENT_ enums
+ * @param contentType the content value
+ * @return a display string
+ */
+ static QString getContentTypeName(int contentType);
+
virtual bool isRegular() const { return false; }
virtual bool isEmpty() const { return false; }
@@ -401,6 +410,13 @@ public: bool hasFlag(EFlag flag) const;
/**
+ * @brief test if the mods contains the specified content
+ * @param content the content to test
+ * @return true if the content is there, false otherwise
+ */
+ bool hasContent(ModInfo::EContent content) const;
+
+ /**
* @return an indicator if and how this mod should be highlighted by the UI
*/
virtual int getHighlight() const { return HIGHLIGHT_NONE; }
|
