summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-01-03 12:35:25 +0100
committerTannin <devnull@localhost>2015-01-03 12:35:25 +0100
commit9b5c238938461f8c811555647e459259b8aca2b3 (patch)
tree504d5d876b43da5d2e0b90fe5625dad7eb1dc7c3 /src/modinfo.h
parente7b6a7cbddec32d300a1f758281c717402525053 (diff)
- repository info is now stored with the mod
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index 70bc88c6..6fbab1a0 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -267,6 +267,11 @@ public:
virtual void setNewestVersion(const MOBase::VersionInfo &version) = 0;
/**
+ * @brief sets the repository that was used to download the mod
+ */
+ virtual void setRepository(const QString &) {}
+
+ /**
* @brief changes/updates the nexus description text
* @param description the current description text
*/
@@ -349,6 +354,11 @@ public:
virtual MOBase::VersionInfo getNewestVersion() const = 0;
/**
+ * @return the repository from which the file was downloaded. Only relevant regular mods
+ */
+ virtual QString repository() const { return ""; }
+
+ /**
* @brief ignore the newest version for updates
*/
virtual void ignoreUpdate(bool ignore) = 0;
@@ -727,6 +737,12 @@ public:
virtual void setPrimaryCategory(int categoryID) { m_PrimaryCategory = categoryID; m_MetaInfoChanged = true; }
/**
+ * @brief sets the download repository
+ * @param repository
+ */
+ virtual void setRepository(const QString &repository) { m_Repository = repository; }
+
+ /**
* update the endorsement state for the mod. This only changes the
* buffered state, it does not sync with Nexus
* @param endorsed the new endorsement state
@@ -844,6 +860,11 @@ public:
QString getNexusDescription() const;
/**
+ * @return repository from which the file was downloaded
+ */
+ virtual QString repository() const;
+
+ /**
* @return true if the file has been endorsed on nexus
*/
virtual EEndorsedState endorsedState() const;
@@ -881,6 +902,7 @@ private:
QString m_InstallationFile;
QString m_Notes;
QString m_NexusDescription;
+ QString m_Repository;
QDateTime m_CreationTime;
QDateTime m_LastNexusQuery;