summaryrefslogtreecommitdiff
path: root/src/modinforegular.h
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2019-02-05 16:53:54 -0600
committerSilarn <jrim@rimpo.org>2019-02-18 21:31:19 -0600
commitd86d2f704ab0eb91a9051fa818b5195f323467fa (patch)
tree9af499b51726fc323037e573be2d2f4e519dbc21 /src/modinforegular.h
parenta873c7be23f270ab1a929aaf72aa03182e0ddc2c (diff)
Implement staggered timeouts bases on age.
* < 1 mo = 2 hours * < 3 mo = 4 hours * < 6 mo = 6 hours * < 1 yr = 12 hours * > 1 yr = 24 hours
Diffstat (limited to 'src/modinforegular.h')
-rw-r--r--src/modinforegular.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/modinforegular.h b/src/modinforegular.h
index 6ad51e5f..7dc2fd6e 100644
--- a/src/modinforegular.h
+++ b/src/modinforegular.h
@@ -259,6 +259,11 @@ public:
virtual bool canBeUpdated() const;
/**
+ * @return the update expiration date based on the last updated date from Nexus
+ */
+ virtual QDateTime getExpires() const;
+
+ /**
* @return true if the mod can be enabled/disabled
*/
virtual bool canBeEnabled() const { return true; }
@@ -348,6 +353,16 @@ public:
*/
virtual void setLastNexusQuery(QDateTime time);
+ /**
+ * @return last time the mod was updated on Nexus
+ */
+ virtual QDateTime getNexusLastModified() const;
+
+ /**
+ * @brief set the last time the mod was updated on Nexus
+ */
+ virtual void setNexusLastModified(QDateTime time);
+
virtual QStringList archives(bool checkOnDisk = false);
virtual void setColor(QColor color);
@@ -405,6 +420,7 @@ private:
QDateTime m_CreationTime;
QDateTime m_LastNexusQuery;
QDateTime m_LastNexusUpdate;
+ QDateTime m_NexusLastModified;
QColor m_Color;