2014-04-02 22:41:39 +03:00
|
|
|
#ifndef UPDATEMANAGER_H
|
|
|
|
#define UPDATEMANAGER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class QNetworkAccessManager;
|
|
|
|
class QNetworkReply;
|
|
|
|
|
2014-05-22 11:40:22 -07:00
|
|
|
class UpdateManager : public QObject {
|
2014-04-02 22:41:39 +03:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit UpdateManager(QObject *parent = 0);
|
2015-01-01 20:49:24 -08:00
|
|
|
void checkForUpdates(bool automatic = false);
|
2015-01-25 11:27:42 -08:00
|
|
|
static QString getUUID();
|
2014-05-22 11:40:22 -07:00
|
|
|
|
|
|
|
public
|
|
|
|
slots:
|
2014-07-16 17:20:21 -03:00
|
|
|
void requestReceived();
|
2015-01-01 20:49:24 -08:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool isAutomaticCheck;
|
2014-04-02 22:41:39 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // UPDATEMANAGER_H
|