summaryrefslogtreecommitdiff
path: root/InternetUpdater.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2017-11-24 23:24:09 +0000
committerThomas Preud'homme <robotux@celest.fr>2017-11-24 23:24:09 +0000
commitb3c8bdcc0d1e4b2ab298847a7902b6d60410a5bc (patch)
tree8fce8a51adfb245db8ab2a76831661780c0c713e /InternetUpdater.h
parente297dbd8052ef4e66f069e2dd1865ae7fa8af28e (diff)
New upstream version 1.2.3.6
Diffstat (limited to 'InternetUpdater.h')
-rw-r--r--InternetUpdater.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/InternetUpdater.h b/InternetUpdater.h
new file mode 100644
index 0000000..e13a5a2
--- /dev/null
+++ b/InternetUpdater.h
@@ -0,0 +1,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