diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/stdinstance/stdinstance.cpp | 3 | ||||
-rw-r--r-- | plugins/stdinstance/stdinstance.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/stdinstance/stdinstance.cpp b/plugins/stdinstance/stdinstance.cpp index 12d86bbc..217514a3 100644 --- a/plugins/stdinstance/stdinstance.cpp +++ b/plugins/stdinstance/stdinstance.cpp @@ -17,11 +17,14 @@ #include <QFileInfo> +#include <setting.h> + #include <javautils.h> StdInstance::StdInstance(const QString &rootDir, QObject *parent) : Instance(rootDir, parent) { + settings().registerSetting(new Setting("lastVersionUpdate", 0)); } diff --git a/plugins/stdinstance/stdinstance.h b/plugins/stdinstance/stdinstance.h index d812a9b0..d657d9aa 100644 --- a/plugins/stdinstance/stdinstance.h +++ b/plugins/stdinstance/stdinstance.h @@ -29,8 +29,8 @@ public: virtual void updateCurrentVersion(bool keepCurrent); ////// TIMESTAMPS ////// - virtual qint64 lastVersionUpdate() { return getField("lastVersionUpdate", 0).value<qint64>(); } - virtual void setLastVersionUpdate(qint64 val) { setField("lastVersionUpdate", val); } + virtual qint64 lastVersionUpdate() { return settings().get("lastVersionUpdate").value<qint64>(); } + virtual void setLastVersionUpdate(qint64 val) { settings().set("lastVersionUpdate", val); } }; #endif // STDINSTANCE_H |