summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-03-27 21:04:27 +0100
committerTannin <devnull@localhost>2013-03-27 21:04:27 +0100
commitb4220cf2f4e1998299517490244a48f7ec2b0235 (patch)
tree251c975507250eabd6c8a541b6c345cbf72288a7 /src/modinfo.h
parent10485e15e4de3e1a6c30733ad2d4850591d31509 (diff)
parente0eb97922d5ef4a1448e76f13374ebfda7fda403 (diff)
Merge with branch1.0
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index fba6fc36..adf194dd 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -76,7 +76,8 @@ public:
enum EEndorsedState {
ENDORSED_FALSE,
ENDORSED_TRUE,
- ENDORSED_UNKNOWN
+ ENDORSED_UNKNOWN,
+ ENDORSED_NEVER
};
struct NexusFileInfo {
@@ -267,6 +268,11 @@ public:
virtual void setIsEndorsed(bool endorsed) = 0;
/**
+ * set the mod to "i don't intend to endorse". The mod will not show as unendorsed but can still be endorsed
+ */
+ virtual void setNeverEndorse() = 0;
+
+ /**
* @brief delete the mod from the disc. This does not update the global ModInfo structure or indices
* @return true if the mod was successfully removed
**/
@@ -414,7 +420,7 @@ public:
/**
* @return true if the file has been endorsed on nexus
*/
- virtual EEndorsedState endorsedState() const { return ENDORSED_UNKNOWN; }
+ virtual EEndorsedState endorsedState() const { return ENDORSED_NEVER; }
/**
* @brief updates the valid-flag for this mod
@@ -580,6 +586,11 @@ public:
virtual void setIsEndorsed(bool endorsed);
/**
+ * set the mod to "i don't intend to endorse". The mod will not show as unendorsed but can still be endorsed
+ */
+ virtual void setNeverEndorse();
+
+ /**
* @brief delete the mod from the disc. This does not update the global ModInfo structure or indices
* @return true if the mod was successfully removed
**/
@@ -799,6 +810,7 @@ public:
virtual void setNewestVersion(const MOBase::VersionInfo&) {}
virtual void setNexusDescription(const QString&) {}
virtual void setIsEndorsed(bool) {}
+ virtual void setNeverEndorse() {}
virtual bool remove() { return false; }
virtual void endorse(bool) {}
virtual QString name() const { return tr("Overwrite"); }