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 <lars.knoll@nokia.com>
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
This commit is contained in:
Shane Kearns 2012-04-04 16:14:57 +01:00 committed by Qt by Nokia
parent fd98a8bd3c
commit 5017b2ee54
2 changed files with 4 additions and 0 deletions

View 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)

View File

@ -78,6 +78,7 @@ public:
SslHandshakeFailedError,
TemporaryNetworkFailureError,
NetworkSessionFailedError,
BackgroundRequestNotAllowedError,
UnknownNetworkError = 99,
// proxy errors (101-199):