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

Last change on this file since 8414 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
RevLine 
[1378]1#ifndef BNCNETQUERYV2_H
2#define BNCNETQUERYV2_H
3
[8252]4#include <QEventLoop>
5#include <QNetworkAccessManager>
6#include <QNetworkProxy>
7#include <QNetworkReply>
8#include <QSslError>
9
[1378]10#include "bncnetquery.h"
11
12class bncNetQueryV2 : public bncNetQuery {
13 Q_OBJECT
14
15 public:
[3337]16 bncNetQueryV2(bool secure);
[1378]17 virtual ~bncNetQueryV2();
18
[1391]19 virtual void stop();
[1378]20 virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
[1380]21 virtual void startRequest(const QUrl& url, const QByteArray& gga);
[6787]22 virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
[1378]23 virtual void waitForReadyRead(QByteArray& outData);
24
25 private slots:
26 void slotFinished();
[1405]27 void slotProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*);
[3332]28 void slotSslErrors(QList<QSslError>);
[1378]29
30 private:
[1389]31 void startRequestPrivate(const QUrl& url, const QByteArray& gga, bool full);
[1378]32
33 QNetworkAccessManager* _manager;
34 QNetworkReply* _reply;
35 QEventLoop* _eventLoop;
[1583]36 bool _firstData;
[3337]37 bool _secure;
[7513]38 bool _sslIgnoreErrors;
[1378]39};
40
41#endif
Note: See TracBrowser for help on using the repository browser.