diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-01 20:49:24 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-01 20:49:24 -0800 |
commit | 864c4ce94d58d6b1bad5fa77b75cb1a9311ab889 (patch) | |
tree | c8737b0f7379467c70fbf51b182ff3498396f5f8 /qt-ui/updatemanager.h | |
parent | 4ce3c1e8b89cd7b8178ee8f360f6a431d3d381e6 (diff) | |
download | subsurface-864c4ce94d58d6b1bad5fa77b75cb1a9311ab889.tar.gz |
Automatic update check with an opt out
Store the last version used, the next time we can check, and the decision
if the user does or does not want these checks in the settings.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/updatemanager.h')
-rw-r--r-- | qt-ui/updatemanager.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/updatemanager.h b/qt-ui/updatemanager.h index 98b84021d..4e95d740f 100644 --- a/qt-ui/updatemanager.h +++ b/qt-ui/updatemanager.h @@ -10,11 +10,14 @@ class UpdateManager : public QObject { Q_OBJECT public: explicit UpdateManager(QObject *parent = 0); - void checkForUpdates(); + void checkForUpdates(bool automatic = false); public slots: void requestReceived(); + +private: + bool isAutomaticCheck; }; #endif // UPDATEMANAGER_H |