diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-10-17 19:46:30 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-10-17 19:46:30 +0900 |
commit | 69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch) | |
tree | 7b133311a4d5e5394f2612dced305f815c04847b /src/network/qdns.cpp | |
parent | e07baa10b7b8e7105e02a621efadac67216c61ed (diff) | |
download | tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip |
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/network/qdns.cpp')
-rw-r--r-- | src/network/qdns.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/network/qdns.cpp b/src/network/qdns.cpp index 9f370a8ee..780d119ab 100644 --- a/src/network/qdns.cpp +++ b/src/network/qdns.cpp @@ -62,7 +62,7 @@ #include "ntqdns.h" -#ifndef QT_NO_DNS +#ifndef TQT_NO_DNS #include "ntqdatetime.h" #include "ntqdict.h" @@ -891,7 +891,7 @@ public: TQPtrVector<TQDnsQuery> queries; TQDict<TQDnsDomain> cache; TQSocketDevice * ipv4Socket; -#if !defined (QT_NO_IPV6) +#if !defined (TQT_NO_IPV6) TQSocketDevice * ipv6Socket; #endif }; @@ -933,7 +933,7 @@ TQDnsManager::TQDnsManager() queries( TQPtrVector<TQDnsQuery>( 0 ) ), cache( TQDict<TQDnsDomain>( 83, FALSE ) ), ipv4Socket( new TQSocketDevice( TQSocketDevice::Datagram, TQSocketDevice::IPv4, 0 ) ) -#if !defined (QT_NO_IPV6) +#if !defined (TQT_NO_IPV6) , ipv6Socket( new TQSocketDevice( TQSocketDevice::Datagram, TQSocketDevice::IPv6, 0 ) ) #endif { @@ -952,7 +952,7 @@ TQDnsManager::TQDnsManager() ipv4Socket->setBlocking( FALSE ); connect( rn4, SIGNAL(activated(int)), SLOT(answer()) ); -#if !defined (QT_NO_IPV6) +#if !defined (TQT_NO_IPV6) // Don't connect the IPv6 socket notifier if the host does not // support IPv6. if ( ipv6Socket->socket() != -1 ) { @@ -1028,7 +1028,7 @@ TQDnsManager::~TQDnsManager() queries.setAutoDelete( TRUE ); cache.setAutoDelete( TRUE ); delete ipv4Socket; -#if !defined (QT_NO_IPV6) +#if !defined (TQT_NO_IPV6) delete ipv6Socket; #endif } @@ -1076,7 +1076,7 @@ void TQDnsManager::answer() TQByteArray a( 16383 ); // large enough for anything, one suspects int r; -#if defined (QT_NO_IPV6) +#if defined (TQT_NO_IPV6) r = ipv4Socket->readBlock(a.data(), a.size()); #else if (((TQSocketNotifier *)sender())->socket() == ipv4Socket->socket()) @@ -1085,7 +1085,7 @@ void TQDnsManager::answer() r = ipv6Socket->readBlock(a.data(), a.size()); #endif #if defined(TQDNS_DEBUG) -#if !defined (QT_NO_IPV6) +#if !defined (TQT_NO_IPV6) tqDebug("DNS Manager: answer arrived: %d bytes from %s:%d", r, useIpv4Socket ? ipv4Socket->peerAddress().toString().ascii() : ipv6Socket->peerAddress().toString().ascii(), @@ -1273,7 +1273,7 @@ void TQDnsManager::transmitQuery( int i ) TQHostAddress receiver = *ns->at( q->step % ns->count() ); if (receiver.isIPv4Address()) ipv4Socket->writeBlock( p.data(), pp, receiver, 53 ); -#if !defined (QT_NO_IPV6) +#if !defined (TQT_NO_IPV6) else ipv6Socket->writeBlock( p.data(), pp, receiver, 53 ); #endif @@ -1291,7 +1291,7 @@ void TQDnsManager::transmitQuery( int i ) while( (server=ns->next()) != 0 ) { if (server->isIPv4Address()) ipv4Socket->writeBlock( p.data(), pp, *server, 53 ); -#if !defined (QT_NO_IPV6) +#if !defined (TQT_NO_IPV6) else ipv6Socket->writeBlock( p.data(), pp, *server, 53 ); #endif @@ -2691,4 +2691,4 @@ void TQDns::doResInit() #endif -#endif // QT_NO_DNS +#endif // TQT_NO_DNS |