Rev | Line | |
---|
[1378] | 1 | #ifndef BNCNETQUERYV2_H
|
---|
| 2 | #define BNCNETQUERYV2_H
|
---|
| 3 |
|
---|
| 4 | #include "bncnetquery.h"
|
---|
| 5 |
|
---|
| 6 | class bncNetQueryV2 : public bncNetQuery {
|
---|
| 7 | Q_OBJECT
|
---|
| 8 |
|
---|
| 9 | public:
|
---|
| 10 | bncNetQueryV2();
|
---|
| 11 | virtual ~bncNetQueryV2();
|
---|
| 12 |
|
---|
| 13 | virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
|
---|
[1380] | 14 | virtual void startRequest(const QUrl& url, const QByteArray& gga);
|
---|
[1378] | 15 | virtual void waitForReadyRead(QByteArray& outData);
|
---|
| 16 |
|
---|
| 17 | signals:
|
---|
| 18 |
|
---|
| 19 | private slots:
|
---|
| 20 | void slotError(QNetworkReply::NetworkError);
|
---|
| 21 | void slotReadyRead();
|
---|
| 22 | void slotFinished();
|
---|
| 23 |
|
---|
| 24 | private:
|
---|
[1380] | 25 | void startRequest(const QUrl& url, const QByteArray& gga, bool full);
|
---|
[1378] | 26 |
|
---|
| 27 | QNetworkAccessManager* _manager;
|
---|
| 28 | QNetworkReply* _reply;
|
---|
| 29 | QEventLoop* _eventLoop;
|
---|
| 30 | };
|
---|
| 31 |
|
---|
| 32 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.