Set ConnectInBackground based on request
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Wed, 4 Apr 2012 14:45:22 +0000 (15:45 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Apr 2012 20:18:29 +0000 (22:18 +0200)
commitade5adaab82607593cf17d84fefc330c9fd2a3e0
tree0309ba4f4849dfde508a2466a9e7d5920c149b36
parent2eccb1888901f6fbd1d10e0eba925c0affc83b42
Set ConnectInBackground based on request

Set the QNetworkSession attribute to match the QNetworkRequest that
triggered it.
Currently if there are a mix of normal and background requests queued
and background connections are not allowed by policy:
 - background requests at the head of the queue should fail
 - first foreground request should successfully start a connection
 - remaining requests succeed regardless of background attribute

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