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