summaryrefslogtreecommitdiff
path: root/src/modinforegular.h
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2019-01-29 20:10:53 -0600
committerSilarn <jrim@rimpo.org>2019-02-18 21:29:23 -0600
commitf07f6b8904f69a92cd24e3c52eaf1fc6db8e60dd (patch)
tree8433556283b516a4dda97bbae86e6c1855e20272 /src/modinforegular.h
parentef286a938d79f74947a392d049068e4818ccf7fd (diff)
Update Process Improvements
* 5 minute batch auto-update of up to 10 mods - Still able to force an update of all 'unchecked' mods - Prioritizes mods with oldest update 'age' * Implemented 1-hour wait between update checks per mod * Fixed issues with update progress display * Only enable update filter automatically if 'force update' * Improved display of version update status in mod list - Italic text when ready to perform update check - Tooltip indicates when next update is available * Fixed remaining issues with update fallback check * Only trigger one update API request for duplicate sources
Diffstat (limited to 'src/modinforegular.h')
-rw-r--r--src/modinforegular.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/modinforegular.h b/src/modinforegular.h
index fdb0e672..8e3952e8 100644
--- a/src/modinforegular.h
+++ b/src/modinforegular.h
@@ -256,7 +256,7 @@ public:
/**
* @return true if the mod can be updated
*/
- virtual bool canBeUpdated() const { return m_NexusID > 0; }
+ virtual bool canBeUpdated() const;
/**
* @return true if the mod can be enabled/disabled
@@ -316,10 +316,25 @@ public:
virtual EEndorsedState endorsedState() const;
/**
+ * @brief get the last time nexus was checked for file updates on this mod
+ */
+ virtual QDateTime getLastNexusUpdate() const;
+
+ /**
+ * @brief set the last time nexus was checked for file updates on this mod
+ */
+ virtual void setLastNexusUpdate(QDateTime time);
+
+ /**
* @return last time nexus was queried for infos on this mod
*/
virtual QDateTime getLastNexusQuery() const;
+ /**
+ * @brief set the last time nexus was queried for info on this mod
+ */
+ virtual void setLastNexusQuery(QDateTime time);
+
virtual QStringList archives(bool checkOnDisk = false);
virtual void setColor(QColor color);
@@ -376,6 +391,7 @@ private:
QDateTime m_CreationTime;
QDateTime m_LastNexusQuery;
+ QDateTime m_LastNexusUpdate;
QColor m_Color;