Define QNetworkReply::NetworkSessionFailed error
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Wed, 4 Apr 2012 15:11:53 +0000 (16:11 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Apr 2012 20:18:37 +0000 (22:18 +0200)
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>
src/network/access/qnetworkreply.cpp
src/network/access/qnetworkreply.h

index ac38f2e..1a65947 100644 (file)
@@ -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)
 
index 925ccab..fd75286 100644 (file)
@@ -77,6 +77,7 @@ public:
         OperationCanceledError,
         SslHandshakeFailedError,
         TemporaryNetworkFailureError,
+        NetworkSessionFailedError,
         UnknownNetworkError = 99,
 
         // proxy errors (101-199):