diff options
author | Shane Kearns <[email protected]> | 2012-04-04 16:11:53 +0100 |
---|---|---|
committer | Qt by Nokia <[email protected]> | 2012-04-11 22:18:37 +0200 |
commit | fd98a8bd3c0af549c0dffaa706722f1547bf6821 (patch) | |
tree | 9c316fcd8ed4a753841320b1b97b7f111176613b /src | |
parent | ade5adaab82607593cf17d84fefc330c9fd2a3e0 (diff) |
Define QNetworkReply::NetworkSessionFailed error
This is to replace the UnknownNetworkError which occurs when the
internal QNetworkSession fails to start (e.g. no usable WLAN available)
Change-Id: I2b14577c22e0acf8ff07be7e932f0dfe9ac89c33
Reviewed-by: Lars Knoll <[email protected]>
Reviewed-by: Martin Petersson <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/network/access/qnetworkreply.cpp | 3 | ||||
-rw-r--r-- | src/network/access/qnetworkreply.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreply.cpp b/src/network/access/qnetworkreply.cpp index ac38f2efecd..1a659470bc2 100644 --- a/src/network/access/qnetworkreply.cpp +++ b/src/network/access/qnetworkreply.cpp @@ -131,6 +131,9 @@ QNetworkReplyPrivate::QNetworkReplyPrivate() roaming to another access point. The request should be resubmitted and will be processed as soon as the connection is re-established. + \value NetworkSessionFailedError the connection was broken due + to disconnection from the network or failure to start the network. + \value ProxyConnectionRefusedError the connection to the proxy server was refused (the proxy server is not accepting requests) diff --git a/src/network/access/qnetworkreply.h b/src/network/access/qnetworkreply.h index 925ccab2b5a..fd75286ebad 100644 --- a/src/network/access/qnetworkreply.h +++ b/src/network/access/qnetworkreply.h @@ -77,6 +77,7 @@ public: OperationCanceledError, SslHandshakeFailedError, TemporaryNetworkFailureError, + NetworkSessionFailedError, UnknownNetworkError = 99, // proxy errors (101-199): |