source: ntrip/trunk/BNC/bncnetqueryv2.h@ 1378

Last change on this file since 1378 was 1378, checked in by mervart, 15 years ago

* empty log message *

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