Define BackgroundRequestAttribute
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Wed, 4 Apr 2012 14:20:05 +0000 (15:20 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Apr 2012 20:18:19 +0000 (22:18 +0200)
This is so that the ConnectInBackground flag can be set on the
QNetworkSession internal to QNAM according to pending requests.

Change-Id: If0cc62f5117ed8febbbda7b7f6de62b11b274258
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
src/network/access/qnetworkrequest.cpp
src/network/access/qnetworkrequest.h

index f94337e..1c8655e 100644 (file)
@@ -237,6 +237,14 @@ QT_BEGIN_NAMESPACE
 
     \omitvalue SynchronousRequestAttribute
 
+    \value BackgroundRequestAttribute
+        Type: QVariant::Bool (default: false)
+        Indicates that this is a background transfer, rather than a user initiated
+        transfer. Depending on the platform, background transfers may be subject
+        to different policies.
+        The QNetworkSession ConnectInBackground property will be set according to
+        this attribute.
+
     \value User
         Special type. Additional information can be passed in
         QVariants with types ranging from User to UserMax. The default
index 7f51826..68fc655 100644 (file)
@@ -87,6 +87,7 @@ public:
         MaximumDownloadBufferSizeAttribute, // internal
         DownloadBufferAttribute, // internal
         SynchronousRequestAttribute, // internal
+        BackgroundRequestAttribute,
 
         User = 1000,
         UserMax = 32767