From 4b1e6683d258412dd6e02c55618ff158c749ab4a Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 18 Aug 2014 23:00:25 +0200 Subject: - can now filter by mod content - all files/directories that require write access can now be placed in AppData instead of the MO directory --- src/modinfo.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/modinfo.h') 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; } @@ -400,6 +409,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 */ -- cgit v1.3.1