Mercurial > hg > svapp
comparison framework/VersionTester.h @ 285:32d8084f8543
Merge from branch "qt5". This revision actually builds with Qt4 (late releases) or Qt5, though it will warn on configure with Qt4.
author | Chris Cannam |
---|---|
date | Tue, 14 May 2013 12:37:31 +0100 |
parents | 3c236d31cccd |
children | 8cb01cd2441d |
comparison
equal
deleted
inserted
replaced
279:ce71d2d9bdb7 | 285:32d8084f8543 |
---|---|
22 #define _VERSION_TESTER_H_ | 22 #define _VERSION_TESTER_H_ |
23 | 23 |
24 #include <QStringList> | 24 #include <QStringList> |
25 #include <QString> | 25 #include <QString> |
26 #include <QObject> | 26 #include <QObject> |
27 | 27 #include <QNetworkReply> |
28 class QHttpResponseHeader; | |
29 | 28 |
30 class VersionTester : public QObject | 29 class VersionTester : public QObject |
31 { | 30 { |
32 Q_OBJECT | 31 Q_OBJECT |
33 | 32 |
39 | 38 |
40 signals: | 39 signals: |
41 void newerVersionAvailable(QString); | 40 void newerVersionAvailable(QString); |
42 | 41 |
43 protected slots: | 42 protected slots: |
44 void httpResponseHeaderReceived(const QHttpResponseHeader &); | 43 void finished(); |
45 void httpDone(bool); | 44 void error(QNetworkReply::NetworkError); |
46 | 45 |
47 private: | 46 private: |
47 QString m_myVersion; | |
48 QNetworkReply *m_reply; | |
48 bool m_httpFailed; | 49 bool m_httpFailed; |
49 QString m_myVersion; | |
50 }; | 50 }; |
51 | 51 |
52 #endif | 52 #endif |
53 | 53 |