summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Kearns <ext-shane.2.kearns@nokia.com>2012-04-04 16:11:53 +0100
committerQt by Nokia <qt-info@nokia.com>2012-04-11 22:18:37 +0200
commitfd98a8bd3c0af549c0dffaa706722f1547bf6821 (patch)
tree9c316fcd8ed4a753841320b1b97b7f111176613b
parentade5adaab82607593cf17d84fefc330c9fd2a3e0 (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 <lars.knoll@nokia.com> Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
-rw-r--r--src/network/access/qnetworkreply.cpp3
-rw-r--r--src/network/access/qnetworkreply.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreply.cpp b/src/network/access/qnetworkreply.cpp
index ac38f2efec..1a659470bc 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 925ccab2b5..fd75286eba 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):