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>
This commit is contained in:
Dirk Hohndel 2015-01-01 20:49:24 -08:00
parent 4ce3c1e8b8
commit 864c4ce94d
3 changed files with 56 additions and 10 deletions

View file

@ -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