summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qhostinfo_p.h
diff options
context:
space:
mode:
authorAaron Tunney <ext-aaron.2.tunney@nokia.com>2011-03-30 15:46:10 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2011-03-31 14:42:28 (GMT)
commit6022cd668435d1dda127e26e71de01982c7441a3 (patch)
tree5de814f9f175ef915c867ab465a0182ed513e214 /src/network/kernel/qhostinfo_p.h
parent2c09d9c463aeff4888e7b694351d15cbb760ccdf (diff)
downloadQt-6022cd668435d1dda127e26e71de01982c7441a3.zip
Qt-6022cd668435d1dda127e26e71de01982c7441a3.tar.gz
Qt-6022cd668435d1dda127e26e71de01982c7441a3.tar.bz2
Ayschronous Next() change for DNS resolution.
Reviewed-By: Shane Kearns
Diffstat (limited to 'src/network/kernel/qhostinfo_p.h')
-rw-r--r--src/network/kernel/qhostinfo_p.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/network/kernel/qhostinfo_p.h b/src/network/kernel/qhostinfo_p.h
index a7e83da..ab3e809 100644
--- a/src/network/kernel/qhostinfo_p.h
+++ b/src/network/kernel/qhostinfo_p.h
@@ -236,6 +236,8 @@ public:
void requestHostLookup();
int id();
+ void returnResults();
+
QHostInfoResult resultEmitter;
private:
@@ -244,10 +246,13 @@ private:
void run();
TInt RunError(TInt aError);
- void processNameResults();
- void processAddressResults();
+ void processNameResult();
+ void nextNameResult();
+ void processAddressResult();
private:
+ int iId;
+
const QString iHostName;
QString iEncodedHostName;
TPtrC iHostNamePtr;
@@ -263,10 +268,13 @@ private:
QHostInfo iResults;
+ QList<QHostAddress> iHostAddresses;
+
enum {
EIdle,
EGetByName,
EGetByAddress,
+ EGetMoreNames,
EError
} iState;
};