From fd98a8bd3c0af549c0dffaa706722f1547bf6821 Mon Sep 17 00:00:00 2001 From: Shane Kearns Date: Wed, 4 Apr 2012 16:11:53 +0100 Subject: [PATCH] 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 Reviewed-by: Martin Petersson --- src/network/access/qnetworkreply.cpp | 3 +++ src/network/access/qnetworkreply.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/network/access/qnetworkreply.cpp b/src/network/access/qnetworkreply.cpp index ac38f2e..1a65947 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 925ccab..fd75286 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): -- 2.7.4