summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
authorChris Bessent <lost.dragonist@gmail.com>2020-01-06 05:17:01 -0700
committerGitHub <noreply@github.com>2020-01-06 05:17:01 -0700
commitdfa600996c49c1b23dca884c963dc917bd9cfc0a (patch)
treec6def4277cc962822d0dcde71fa9148e050f693f /src/modinfo.h
parente69078e2399a88bda7bb9ffae7a3d57db9a4e9cf (diff)
parentd1a788dfad341b32235abc25c2ba1645f8be1ace (diff)
Merge pull request #954 from ModOrganizer2/Develop
Stage for release 2.2.2
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h37
1 files changed, 29 insertions, 8 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index e395f45b..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,
@@ -229,6 +233,18 @@ public:
*/
static ModInfo::Ptr createFromPlugin(const QString &modName, const QString &espName, const QStringList &bsaNames, ModInfo::EModType modType, MOShared::DirectoryEntry **directoryStructure, PluginContainer *pluginContainer);
+ // whether the given name is used for separators
+ //
+ static bool isSeparatorName(const QString& name);
+
+ // whether the given name is used for backups
+ //
+ static bool isBackupName(const QString& name);
+
+ // whether the given name is used for regular mods
+ //
+ static bool isRegularName(const QString& name);
+
/**
* @brief retieve a name for one of the CONTENT_ enums
* @param contentType the content value
@@ -508,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>(); }