From 5017b2ee54aa4b87e4c09ae07df7425248f614b4 Mon Sep 17 00:00:00 2001 From: Shane Kearns Date: Wed, 4 Apr 2012 16:14:57 +0100 Subject: [PATCH] Define QNetworkReply::BackgroundRequestNotAllowedError This error will be used when background network requests are not allowed according to the current policy of the bearer plugin. For example, to save power when battery is low on a portable device. Change-Id: I866e115f8fdd046134da99ea895b7c1df0375f26 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 1a659470bc..aefe07223f 100644 --- a/src/network/access/qnetworkreply.cpp +++ b/src/network/access/qnetworkreply.cpp @@ -134,6 +134,9 @@ QNetworkReplyPrivate::QNetworkReplyPrivate() \value NetworkSessionFailedError the connection was broken due to disconnection from the network or failure to start the network. + \value BackgroundRequestNotAllowedError the background request + is not currently allowed due to platform policy. + \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 fd75286eba..e514779a0a 100644 --- a/src/network/access/qnetworkreply.h +++ b/src/network/access/qnetworkreply.h @@ -78,6 +78,7 @@ public: SslHandshakeFailedError, TemporaryNetworkFailureError, NetworkSessionFailedError, + BackgroundRequestNotAllowedError, UnknownNetworkError = 99, // proxy errors (101-199):