summaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/doc/src/snippets/code/src_qt3support_network_q3dns.cpp
blob: 9638ff1171d0a6d3b77a360667d0e81279dd1835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! [0]
QStringList list = myDns.qualifiedNames();
QStringList::Iterator it = list.begin();
while( it != list.end() ) {
    myProcessing( *it );
    ++it;
}
//! [0]


//! [1]
Q3ValueList<QHostAddress> list = myDns.addresses();
Q3ValueList<QHostAddress>::Iterator it = list.begin();
while( it != list.end() ) {
    myProcessing( *it );
    ++it;
}
//! [1]


//! [2]
Q3ValueList<Q3Dns::MailServer> list = myDns.mailServers();
Q3ValueList<Q3Dns::MailServer>::Iterator it = list.begin();
while( it != list.end() ) {
    myProcessing( *it );
    ++it;
}
//! [2]


//! [3]
Q3ValueList<Q3Dns::Server> list = myDns.servers();
Q3ValueList<Q3Dns::Server>::Iterator it = list.begin();
while( it != list.end() ) {
    myProcessing( *it );
    ++it;
}
//! [3]


//! [4]
QStringList list = myDns.hostNames();
QStringList::Iterator it = list.begin();
while( it != list.end() ) {
    myProcessing( *it );
    ++it;
}
//! [4]


//! [5]
QStringList list = myDns.texts();
QStringList::Iterator it = list.begin();
while( it != list.end() ) {
    myProcessing( *it );
    ++it;
}
//! [5]