diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2023-01-11 18:19:39 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2023-01-24 20:11:53 +0100 |
commit | 5006fddd33c32eb972f1bdc6b72acc43a3741e23 (patch) | |
tree | 9bcadbea5e205b0259a72192791fc4a4dc3815ca /examples/network/http/httpwindow.h | |
parent | d18b5195c1b0442f7fb6c01c3e9a8fb499da3d48 (diff) |
HTTP Example: Add proxy handling
If a proxy is configured on the system then we will request credentials
if needed.
Task-number: QTBUG-108874
Fixes: QTBUG-106245
Pick-to: 6.5
Change-Id: Icbea491492cde4634421b1a1e722a3768d56dec8
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'examples/network/http/httpwindow.h')
-rw-r--r-- | examples/network/http/httpwindow.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/network/http/httpwindow.h b/examples/network/http/httpwindow.h index 64e9274288..ade0635e48 100644 --- a/examples/network/http/httpwindow.h +++ b/examples/network/http/httpwindow.h @@ -19,6 +19,9 @@ class QSslError; class QAuthenticator; class QNetworkReply; class QCheckBox; +#if QT_CONFIG(networkproxy) +class QNetworkProxy; +#endif QT_END_NAMESPACE @@ -52,6 +55,9 @@ private slots: #if QT_CONFIG(ssl) void sslErrors(const QList<QSslError> &errors); #endif +#if QT_CONFIG(networkproxy) + void slotProxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator); +#endif private: std::unique_ptr<QFile> openFileForWrite(const QString &fileName); |