summaryrefslogtreecommitdiff
path: root/src/AutoUpdater.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-02-05 05:36:25 (GMT)
committerMarius Kintel <marius@kintel.net>2013-02-05 05:36:25 (GMT)
commitfa00547507566a646db2baffea114104b1ffd567 (patch)
tree85d8d3e09c9b4c1f651829042e20b061166ea415 /src/AutoUpdater.h
parent03be37d16b585e64de87118053206aaae06e7cf8 (diff)
First version of automatic updates for Mac
Diffstat (limited to 'src/AutoUpdater.h')
-rw-r--r--src/AutoUpdater.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/AutoUpdater.h b/src/AutoUpdater.h
new file mode 100644
index 0000000..18527c8
--- /dev/null
+++ b/src/AutoUpdater.h
@@ -0,0 +1,25 @@
+#ifndef AUTOUPDATER_H_
+#define AUTOUPDATER_H_
+
+#include <QString>
+
+class AutoUpdater
+{
+public:
+ virtual ~AutoUpdater() {}
+
+ virtual void checkForUpdates() = 0;
+ virtual void setAutomaticallyChecksForUpdates(bool on) = 0;
+ virtual bool automaticallyChecksForUpdates() = 0;
+ virtual void setEnableSnapshots(bool on) = 0;
+ virtual bool enableSnapshots() = 0;
+ virtual QString lastUpdateCheckDate() = 0;
+
+ static AutoUpdater *updater() { return updater_instance; }
+ static void setUpdater(AutoUpdater *updater) { updater_instance = updater; }
+
+protected:
+ static AutoUpdater *updater_instance;
+};
+
+#endif
contact: Jan Huwald // Impressum