source: ntrip/trunk/BNC/src/bncnetqueryv2.h@ 9158

Last change on this file since 9158 was 8252, checked in by stoecker, 7 years ago

see #105 - reenable Qt4 build options, drop generic version dependend includes, replace by direct requirements, remaining QtCore lines should also be replaced

File size: 1.1 KB
Line 
1#ifndef BNCNETQUERYV2_H
2#define BNCNETQUERYV2_H
3
4#include <QEventLoop>
5#include <QNetworkAccessManager>
6#include <QNetworkProxy>
7#include <QNetworkReply>
8#include <QSslError>
9
10#include "bncnetquery.h"
11
12class bncNetQueryV2 : public bncNetQuery {
13 Q_OBJECT
14
15 public:
16 bncNetQueryV2(bool secure);
17 virtual ~bncNetQueryV2();
18
19 virtual void stop();
20 virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
21 virtual void startRequest(const QUrl& url, const QByteArray& gga);
22 virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
23 virtual void waitForReadyRead(QByteArray& outData);
24
25 private slots:
26 void slotFinished();
27 void slotProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*);
28 void slotSslErrors(QList<QSslError>);
29
30 private:
31 void startRequestPrivate(const QUrl& url, const QByteArray& gga, bool full);
32
33 QNetworkAccessManager* _manager;
34 QNetworkReply* _reply;
35 QEventLoop* _eventLoop;
36 bool _firstData;
37 bool _secure;
38 bool _sslIgnoreErrors;
39};
40
41#endif
Note: See TracBrowser for help on using the repository browser.