summaryrefslogtreecommitdiff
path: root/src/modinfo.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/modinfo.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/modinfo.h')
-rw-r--r--src/modinfo.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index 9343a98c..2048432e 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -24,9 +24,9 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "versioninfo.h"
class PluginContainer;
-
-class QDateTime;
class QDir;
+
+#include <QDateTime>
#include <QMutex>
#include <QSharedPointer>
#include <QString>
@@ -460,6 +460,11 @@ public:
virtual bool canBeUpdated() const { return false; }
/**
+ * @return the mod update check expiration date
+ */
+ virtual QDateTime getExpires() const { return QDateTime(); }
+
+ /**
* @return true if the mod can be enabled/disabled
*/
virtual bool canBeEnabled() const { return false; }
@@ -556,6 +561,16 @@ public:
virtual void setLastNexusQuery(QDateTime time) = 0;
/**
+ * @return last time the mod was updated on Nexus
+ */
+ virtual QDateTime getNexusLastModified() const = 0;
+
+ /**
+ * @brief set the last time the mod was updated on Nexus
+ */
+ virtual void setNexusLastModified(QDateTime time) = 0;
+
+ /**
* @return a list of files that, if they exist in the data directory are treated as files in THIS mod
*/
virtual QStringList stealFiles() const { return QStringList(); }