diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2012-05-07 11:10:29 +0200 |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2012-05-09 08:35:43 +0200 |
commit | 7eca53b51a2c7cae0b39fedb0b78205504bfd64b (patch) | |
tree | 61d62785fd0035af3b55ddc745b7d466125bda59 /src/network/kernel/qhostinfo.cpp | |
parent | 9fde9ab167e52948d337de7fb7b871f7a1d75f43 (diff) |
Doc: Modularize QtNetwork documentation.
This change moves the snippets and imagesto the modularized directories.
Change-Id: If14912692a7f72d7de345eaf88d9ec9752310fca
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'src/network/kernel/qhostinfo.cpp')
-rw-r--r-- | src/network/kernel/qhostinfo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp index 085f2f6651..32cf90145c 100644 --- a/src/network/kernel/qhostinfo.cpp +++ b/src/network/kernel/qhostinfo.cpp @@ -83,7 +83,7 @@ Q_GLOBAL_STATIC(QHostInfoLookupManager, theHostInfoLookupManager) Example: - \snippet doc/src/snippets/code/src_network_kernel_qhostinfo.cpp 0 + \snippet code/src_network_kernel_qhostinfo.cpp 0 The slot is invoked when the results are ready. The results are @@ -97,7 +97,7 @@ Q_GLOBAL_STATIC(QHostInfoLookupManager, theHostInfoLookupManager) If you want a blocking lookup, use the QHostInfo::fromName() function: - \snippet doc/src/snippets/code/src_network_kernel_qhostinfo.cpp 1 + \snippet code/src_network_kernel_qhostinfo.cpp 1 QHostInfo supports Internationalized Domain Names (IDNs) through the IDNA and Punycode standards. @@ -126,12 +126,12 @@ static QBasicAtomicInt theIdCounter = Q_BASIC_ATOMIC_INITIALIZER(1); The lookup is performed by a single function call, for example: - \snippet doc/src/snippets/code/src_network_kernel_qhostinfo.cpp 2 + \snippet code/src_network_kernel_qhostinfo.cpp 2 The implementation of the slot prints basic information about the addresses returned by the lookup, or reports an error if it failed: - \snippet doc/src/snippets/code/src_network_kernel_qhostinfo.cpp 3 + \snippet code/src_network_kernel_qhostinfo.cpp 3 If you pass a literal IP address to \a name instead of a host name, QHostInfo will search for the domain name for the IP (i.e., QHostInfo will @@ -139,7 +139,7 @@ static QBasicAtomicInt theIdCounter = Q_BASIC_ATOMIC_INITIALIZER(1); contain both the resolved domain name and IP addresses for the host name. Example: - \snippet doc/src/snippets/code/src_network_kernel_qhostinfo.cpp 4 + \snippet code/src_network_kernel_qhostinfo.cpp 4 \note There is no guarantee on the order the signals will be emitted if you start multiple requests with lookupHost(). @@ -311,7 +311,7 @@ QHostInfo::~QHostInfo() Example: - \snippet doc/src/snippets/code/src_network_kernel_qhostinfo.cpp 5 + \snippet code/src_network_kernel_qhostinfo.cpp 5 \sa hostName(), error() */ |