summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-03-27 20:48:33 +0100
committerTannin <devnull@localhost>2013-03-27 20:48:33 +0100
commite0eb97922d5ef4a1448e76f13374ebfda7fda403 (patch)
tree00f32ad3f680e51a210bee8155624d71f608bb15 /src/modinfo.h
parent74c75e60d67b66a63225239c1f6b1403662857aa (diff)
- added hooks for getFileVersion* functions
- automatic donwload retry - support for storing multiple download urls - improved "query info" functionality - some cleanup to download manager code - external fomod installer dialog are now brought to front - added shell... functions to have windows handle problematic situations - added visual clue when filters are active - esps are now automatically activated when installing a mod - added option to never endorse a mod - added "previous" and "next" buttons to mod info dialog - improved the way messagedialog text is shortened - coloring in mod info dialog now visible in other color schemes - plugin list is now saved automatically - vanilla bsas are now enabled even if they are not listed in the ini file - bugfix: setting mod to maximum now doesn't try to place the mod below overwrite
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 a944a6f6..4c5cfd50 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 {
@@ -268,6 +269,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
**/
@@ -415,7 +421,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
@@ -581,6 +587,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
**/
@@ -800,6 +811,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"); }