Last change
on this file since 10417 was 9795, checked in by stuerze, 2 years ago |
consideration of client SSL certificates, if they are available
|
File size:
1.2 KB
|
Rev | Line | |
---|
[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>
|
---|
[9795] | 9 | #include <QSslKey>
|
---|
[8252] | 10 |
|
---|
[1378] | 11 | #include "bncnetquery.h"
|
---|
| 12 |
|
---|
| 13 | class bncNetQueryV2 : public bncNetQuery {
|
---|
| 14 | Q_OBJECT
|
---|
| 15 |
|
---|
| 16 | public:
|
---|
[3337] | 17 | bncNetQueryV2(bool secure);
|
---|
[1378] | 18 | virtual ~bncNetQueryV2();
|
---|
| 19 |
|
---|
[1391] | 20 | virtual void stop();
|
---|
[1378] | 21 | virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
|
---|
[1380] | 22 | virtual void startRequest(const QUrl& url, const QByteArray& gga);
|
---|
[6787] | 23 | virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
|
---|
[1378] | 24 | virtual void waitForReadyRead(QByteArray& outData);
|
---|
| 25 |
|
---|
| 26 | private slots:
|
---|
| 27 | void slotFinished();
|
---|
[1405] | 28 | void slotProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*);
|
---|
[3332] | 29 | void slotSslErrors(QList<QSslError>);
|
---|
[1378] | 30 |
|
---|
| 31 | private:
|
---|
[1389] | 32 | void startRequestPrivate(const QUrl& url, const QByteArray& gga, bool full);
|
---|
[1378] | 33 |
|
---|
| 34 | QNetworkAccessManager* _manager;
|
---|
| 35 | QNetworkReply* _reply;
|
---|
[9795] | 36 | QString _crtFileName;
|
---|
| 37 | QString _keyFileName;
|
---|
[1378] | 38 | QEventLoop* _eventLoop;
|
---|
[1583] | 39 | bool _firstData;
|
---|
[3337] | 40 | bool _secure;
|
---|
[7513] | 41 | bool _sslIgnoreErrors;
|
---|
[1378] | 42 | };
|
---|
| 43 |
|
---|
| 44 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.