Define QNetworkReply::BackgroundRequestNotAllowedError
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Wed, 4 Apr 2012 15:14:57 +0000 (16:14 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Apr 2012 20:18:43 +0000 (22:18 +0200)
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 <lars.knoll@nokia.com>
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
src/network/access/qnetworkreply.cpp
src/network/access/qnetworkreply.h

index 1a65947..aefe072 100644 (file)
@@ -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)
 
index fd75286..e514779 100644 (file)
@@ -78,6 +78,7 @@ public:
         SslHandshakeFailedError,
         TemporaryNetworkFailureError,
         NetworkSessionFailedError,
+        BackgroundRequestNotAllowedError,
         UnknownNetworkError = 99,
 
         // proxy errors (101-199):