summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qhostinfo_p.h
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-03-21 18:53:42 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2011-03-22 10:11:34 (GMT)
commit40fc1a3ca3b7050f317513cf69dd89a01479e098 (patch)
tree2fdfe24c95445d1cda24aed56b6690b35c726401 /src/network/kernel/qhostinfo_p.h
parent67c6737c6702506b5b09fd84389e20ba539cc000 (diff)
downloadQt-40fc1a3ca3b7050f317513cf69dd89a01479e098.zip
Qt-40fc1a3ca3b7050f317513cf69dd89a01479e098.tar.gz
Qt-40fc1a3ca3b7050f317513cf69dd89a01479e098.tar.bz2
Implement network session support for synchronous QHostInfo
Private API, QHostInfoPrivate::fromName, which is called from QAbstractSocket when the network session property is set. Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/kernel/qhostinfo_p.h')
-rw-r--r--src/network/kernel/qhostinfo_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/kernel/qhostinfo_p.h b/src/network/kernel/qhostinfo_p.h
index e3f7f19..a40104a 100644
--- a/src/network/kernel/qhostinfo_p.h
+++ b/src/network/kernel/qhostinfo_p.h
@@ -70,6 +70,7 @@
#include <QCache>
#include <QNetworkSession>
+#include <QSharedPointer>
#ifdef Q_OS_SYMBIAN
// Symbian Headers
@@ -117,6 +118,10 @@ public:
lookupId(0)
{
}
+#ifndef QT_NO_BEARERMANAGEMENT
+ //not a public API yet
+ static QHostInfo fromName(const QString &hostName, QSharedPointer<QNetworkSession> networkSession);
+#endif
QHostInfo::HostInfoError err;
QString errorStr;