blob: e13a5a22cd261fab210877ae28f23c9624715b37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef INTERNETUPDATER_H
#define INTERNETUPDATER_H
#include "Environment.h"
#include <QObject>
#include <QString>
#include <QTimer>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#ifdef ULTRACOPIER_INTERNET_SUPPORT
class InternetUpdater : public QObject
{
Q_OBJECT
public:
explicit InternetUpdater(QObject *parent = 0);
signals:
void newUpdate(const QString &version) const;
private:
QTimer newUpdateTimer;
QTimer firstUpdateTimer;
QNetworkAccessManager qnam;
QNetworkReply *reply;
private slots:
void downloadFile();
void httpFinished();
};
#endif
#endif // INTERNETUPDATER_H
|