diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-12-20 14:33:08 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-20 14:33:08 -0600 |
| commit | ed67ac211306bee2067178ace1a0a7fbcd0bea1b (patch) | |
| tree | 8fe31503ba20a436457c8c94d61f953b4aa067b4 /src/modinfo.h | |
| parent | 2232bdfc779b8575c8374a723d4d02a2b41fb352 (diff) | |
| parent | 9a33dc148054443cb0efd5916ff758fca5bc09e3 (diff) | |
Merge pull request #586 from ModOrganizer2/Develop
Release 2.1.6
Diffstat (limited to 'src/modinfo.h')
| -rw-r--r-- | src/modinfo.h | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/src/modinfo.h b/src/modinfo.h index 4cdd7bcf..5a69185d 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -31,6 +31,7 @@ class QDir; #include <QSharedPointer>
#include <QString>
#include <QStringList>
+#include <QColor>
#include <boost/function.hpp>
@@ -43,7 +44,7 @@ namespace MOShared { class DirectoryEntry; } /**
* @brief Represents meta information about a single mod.
- *
+ *
* Represents meta information about a single mod. The class interface is used
* to manage the mod collection
*
@@ -62,6 +63,7 @@ public: enum EFlag {
FLAG_INVALID,
FLAG_BACKUP,
+ FLAG_SEPARATOR,
FLAG_OVERWRITE,
FLAG_FOREIGN,
FLAG_NOTENDORSED,
@@ -83,12 +85,15 @@ public: CONTENT_SOUND,
CONTENT_SCRIPT,
CONTENT_SKSE,
+ CONTENT_SKSEFILES,
CONTENT_SKYPROC,
CONTENT_MCM,
- CONTENT_INI
+ CONTENT_INI,
+ CONTENT_MODGROUP
+
};
- static const int NUM_CONTENT_TYPES = CONTENT_INI + 1;
+ static const int NUM_CONTENT_TYPES = CONTENT_MODGROUP + 1;
enum EHighlight {
HIGHLIGHT_NONE = 0,
@@ -264,6 +269,12 @@ public: virtual void setCategory(int categoryID, bool active) = 0;
/**
+ * @brief changes the comments (manually set information displayed in the mod list) for this mod
+ * @param comments new comments
+ */
+ virtual void setComments(const QString &comments) = 0;
+
+ /**
* @brief change the notes (manually set information) for this mod
* @param notes new notes
*/
@@ -491,6 +502,11 @@ public: virtual QString getDescription() const = 0;
/**
+ * @return comments for this mod
+ */
+ virtual QString comments() const = 0;
+
+ /**
* @return notes for this mod
*/
virtual QString notes() const = 0;
@@ -520,6 +536,16 @@ public: */
virtual QStringList archives() const = 0;
+ /*
+ *@return the color choosen by the user for the mod/separator
+ */
+ virtual QColor getColor() { return QColor(); }
+
+ /*
+ *@return true if the color has been set successfully.
+ */
+ virtual void setColor(QColor color) { }
+
/**
* @brief adds the information that a file has been installed into this mod
* @param modId id of the mod installed
@@ -557,7 +583,7 @@ public: /**
* @return true if this mod is considered "valid", that is: it contains data used by the game
**/
- bool isValid() const { return m_Valid; }
+ virtual bool isValid() const { return m_Valid; }
/**
* @return true if the file has been endorsed on nexus
@@ -575,6 +601,11 @@ public: virtual void markConverted(bool converted) {}
/**
+ * @brief updates the mod to flag it as valid in order to ignore the invalid game data flag
+ */
+ virtual void markValidated(bool validated) {}
+
+ /**
* @brief reads meta information from disk
*/
virtual void readMeta() {}
|
