Mercurial > hg > easyhg
comparison src/versiontester.h @ 672:88fa1544b407
Merge from branch qt5. There's much more to be done before we can make another release, but clearly it's going to be done using qt5
author | Chris Cannam |
---|---|
date | Wed, 05 Dec 2018 09:44:10 +0000 |
parents | f9b805d8cab4 |
children |
comparison
equal
deleted
inserted
replaced
665:88061103b878 | 672:88fa1544b407 |
---|---|
19 #define _VERSION_TESTER_H_ | 19 #define _VERSION_TESTER_H_ |
20 | 20 |
21 #include <QStringList> | 21 #include <QStringList> |
22 #include <QString> | 22 #include <QString> |
23 #include <QObject> | 23 #include <QObject> |
24 | 24 #include <QNetworkReply> |
25 class QHttpResponseHeader; | |
26 | 25 |
27 class VersionTester : public QObject | 26 class VersionTester : public QObject |
28 { | 27 { |
29 Q_OBJECT | 28 Q_OBJECT |
30 | 29 |
36 | 35 |
37 signals: | 36 signals: |
38 void newerVersionAvailable(QString); | 37 void newerVersionAvailable(QString); |
39 | 38 |
40 protected slots: | 39 protected slots: |
41 void httpResponseHeaderReceived(const QHttpResponseHeader &); | 40 void finished(); |
42 void httpDone(bool); | 41 void error(QNetworkReply::NetworkError); |
43 | 42 |
44 private: | 43 private: |
44 QString m_myVersion; | |
45 QNetworkReply *m_reply; | |
45 bool m_httpFailed; | 46 bool m_httpFailed; |
46 QString m_myVersion; | |
47 }; | 47 }; |
48 | 48 |
49 #endif | 49 #endif |
50 | 50 |