summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2019-12-06 23:12:18 -0600
committerSilarn <jrim@rimpo.org>2019-12-06 23:12:18 -0600
commitb3331ef2c0b50ab2cea4c328e78f6ab58bca099d (patch)
treee0be0d00f40733baa4692120d0266ae797ab3785 /src/modinfo.h
parentd42bca5bc0043337f8de72ea72544ebabc505f8b (diff)
Separate conflict flags and render them in separate columns
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index 30a115c7..7c41e0a1 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -60,14 +60,7 @@ public:
static QString s_HiddenExt;
- enum EFlag {
- FLAG_INVALID,
- FLAG_BACKUP,
- FLAG_SEPARATOR,
- FLAG_OVERWRITE,
- FLAG_FOREIGN,
- FLAG_NOTENDORSED,
- FLAG_NOTES,
+ enum EConflictFlag {
FLAG_CONFLICT_OVERWRITE,
FLAG_CONFLICT_OVERWRITTEN,
FLAG_CONFLICT_MIXED,
@@ -77,6 +70,17 @@ public:
FLAG_ARCHIVE_CONFLICT_OVERWRITE,
FLAG_ARCHIVE_CONFLICT_OVERWRITTEN,
FLAG_ARCHIVE_CONFLICT_MIXED,
+ FLAG_OVERWRITE_CONFLICT,
+ };
+
+ enum EFlag {
+ FLAG_INVALID,
+ FLAG_BACKUP,
+ FLAG_SEPARATOR,
+ FLAG_OVERWRITE,
+ FLAG_FOREIGN,
+ FLAG_NOTENDORSED,
+ FLAG_NOTES,
FLAG_PLUGIN_SELECTED,
FLAG_ALTERNATE_GAME,
FLAG_TRACKED,
@@ -520,6 +524,11 @@ public:
virtual std::vector<EFlag> getFlags() const = 0;
/**
+ * @return a list of conflict flags for this mod
+ */
+ virtual std::vector<EConflictFlag> getConflictFlags() const = 0;
+
+ /**
* @return a list of content types contained in a mod
*/
virtual std::vector<EContent> getContents() const { return std::vector<EContent>(); }