mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
864c4ce94d
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>
23 lines
374 B
C++
23 lines
374 B
C++
#ifndef UPDATEMANAGER_H
|
|
#define UPDATEMANAGER_H
|
|
|
|
#include <QObject>
|
|
|
|
class QNetworkAccessManager;
|
|
class QNetworkReply;
|
|
|
|
class UpdateManager : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
explicit UpdateManager(QObject *parent = 0);
|
|
void checkForUpdates(bool automatic = false);
|
|
|
|
public
|
|
slots:
|
|
void requestReceived();
|
|
|
|
private:
|
|
bool isAutomaticCheck;
|
|
};
|
|
|
|
#endif // UPDATEMANAGER_H
|