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

Last change on this file since 6787 was 6787, checked in by stuerze, 9 years ago

add keep-alive request to send gga message in ntrip version 1 mode without interruption

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