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

Last change on this file since 10043 was 9795, checked in by stuerze, 2 years ago

consideration of client SSL certificates, if they are available

File size: 1.2 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#include <QSslKey>
10
11#include "bncnetquery.h"
12
13class bncNetQueryV2 : public bncNetQuery {
14 Q_OBJECT
15
16 public:
17 bncNetQueryV2(bool secure);
18 virtual ~bncNetQueryV2();
19
20 virtual void stop();
21 virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
22 virtual void startRequest(const QUrl& url, const QByteArray& gga);
23 virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
24 virtual void waitForReadyRead(QByteArray& outData);
25
26 private slots:
27 void slotFinished();
28 void slotProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*);
29 void slotSslErrors(QList<QSslError>);
30
31 private:
32 void startRequestPrivate(const QUrl& url, const QByteArray& gga, bool full);
33
34 QNetworkAccessManager* _manager;
35 QNetworkReply* _reply;
36 QString _crtFileName;
37 QString _keyFileName;
38 QEventLoop* _eventLoop;
39 bool _firstData;
40 bool _secure;
41 bool _sslIgnoreErrors;
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.