summaryrefslogtreecommitdiff
path: root/src/network/kernel/qhostinfo_p.h
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-03-18 11:45:52 +0000
committerShane Kearns <shane.kearns@accenture.com>2011-03-18 11:57:29 +0000
commite29e13ff537a92f7d2afe34893d8bae8a6788bed (patch)
treee422721af8c307ed101c60377ffa58efa0569149 /src/network/kernel/qhostinfo_p.h
parent0679abb6b4f85878cb64fce2089ba926e3b9400c (diff)
downloadqt4-tools-e29e13ff537a92f7d2afe34893d8bae8a6788bed.tar.gz
Add explicit network session support for async QHostInfo
Pass the shared network session pointer into the QSymbianHostResolver (which maintains a reference for its lifetime). This is used to open the RHostResolver handle, in order to get a host resolver which is associated with a particular session. The session is obtained from the _q_networksession property of the QAbstractSocket, as in the symbian socket engine Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/kernel/qhostinfo_p.h')
-rw-r--r--src/network/kernel/qhostinfo_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/kernel/qhostinfo_p.h b/src/network/kernel/qhostinfo_p.h
index 909bd032c2..e3f7f197e8 100644
--- a/src/network/kernel/qhostinfo_p.h
+++ b/src/network/kernel/qhostinfo_p.h
@@ -225,7 +225,7 @@ private slots:
class QSymbianHostResolver : public CActive
{
public:
- QSymbianHostResolver(const QString &hostName, int id);
+ QSymbianHostResolver(const QString &hostName, int id, QSharedPointer<QNetworkSession> networkSession);
~QSymbianHostResolver();
void requestHostLookup();
@@ -247,6 +247,7 @@ private:
RSocketServ& iSocketServ;
RHostResolver iHostResolver;
+ QSharedPointer<QNetworkSession> iNetworkSession;
TRequestStatus iStatus;