summaryrefslogtreecommitdiff
path: root/InternetUpdater.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2019-02-03 00:10:52 +0000
committerThomas Preud'homme <robotux@celest.fr>2019-02-03 00:10:52 +0000
commit9b10c21f5cad0e2ec27d23c59e65af7141a226f3 (patch)
treebf81d75a9ed990bb76488c502767600fcf7550b7 /InternetUpdater.h
parent594fcba67600704bee9115c86e18927b2237b304 (diff)
New upstream version 1.6.1.3
Diffstat (limited to 'InternetUpdater.h')
-rw-r--r--InternetUpdater.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/InternetUpdater.h b/InternetUpdater.h
index d9fc2ce..7ed6abc 100644
--- a/InternetUpdater.h
+++ b/InternetUpdater.h
@@ -17,13 +17,17 @@ class InternetUpdater : public QObject
public:
explicit InternetUpdater(QObject *parent = 0);
~InternetUpdater();
+ void checkUpdate();
signals:
void newUpdate(const std::string &version) const;
+ void noNewUpdate() const;
private:
QTimer newUpdateTimer;
QTimer firstUpdateTimer;
- QNetworkAccessManager qnam;
+ QNetworkAccessManager *qnam;//destroy to close connection
QNetworkReply *reply;
+
+ void downloadFileInternal(const bool force=false);
private slots:
void downloadFile();
void httpFinished();