summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/network/tqdns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/network/tqdns.cpp')
-rw-r--r--tqtinterface/qt4/src/network/tqdns.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/tqtinterface/qt4/src/network/tqdns.cpp b/tqtinterface/qt4/src/network/tqdns.cpp
index 24b5401..898ac43 100644
--- a/tqtinterface/qt4/src/network/tqdns.cpp
+++ b/tqtinterface/qt4/src/network/tqdns.cpp
@@ -762,7 +762,7 @@ void TQDnsAnswer::parse()
if ( rr->target.length() && rr->deleteTime > 0 && rr->current )
used.insert( rr->target, (void*)42 );
if ( ( rr->t == TQDns::A || rr->t == TQDns::Aaaa ) &&
- used.tqfind( rr->domain->name() ) != 0 )
+ used.find( rr->domain->name() ) != 0 )
rr->deleteTime = rr->expireTime;
}
@@ -829,7 +829,7 @@ void TQDnsAnswer::notify()
it.toFirst();
while( (dns=(TQDns*)(it.current())) != 0 ) {
++it;
- if ( notified.tqfind( (void*)dns ) == 0 ) {
+ if ( notified.find( (void*)dns ) == 0 ) {
notified.insert( (void*)dns, (void*)42 );
if ( rrs->count() == 0 ) {
#if defined(TQDNS_DEBUG)
@@ -839,7 +839,7 @@ void TQDnsAnswer::notify()
((TQDnsUgleHack*)dns)->ugle( true );
} else {
TQStringList n = dns->qualifiedNames();
- if ( query && n.tqcontains(query->l) )
+ if ( query && n.contains(query->l) )
((TQDnsUgleHack*)dns)->ugle();
#if defined(TQDNS_DEBUG)
else
@@ -1189,7 +1189,7 @@ void TQDnsManager::transmitQuery( int i )
int pp = 12;
uint lp = 0;
while( lp < (uint) q->l.length() ) {
- int le = q->l.tqfind( QLatin1Char('.'), lp );
+ int le = q->l.find( QLatin1Char('.'), lp );
if ( le < 0 )
le = q->l.length();
TQString component = q->l.mid( lp, le-lp );
@@ -1241,7 +1241,7 @@ void TQDnsManager::transmitQuery( int i )
TQDns::doResInit();
if ( !theNs || theNs->isEmpty() ) {
- // we don't tqfind any name servers. We fake an NXDomain
+ // we don't find any name servers. We fake an NXDomain
// with a very short life time...
TQDnsAnswer answer( q );
answer.notify();
@@ -1297,7 +1297,7 @@ void TQDnsManager::transmitQuery( int i )
TQDnsDomain * TQDnsManager::domain( const TQString & label )
{
- TQDnsDomain * d = cache.tqfind( label );
+ TQDnsDomain * d = cache.find( label );
if ( !d ) {
d = new TQDnsDomain( label );
cache.insert( label, d );
@@ -1495,21 +1495,21 @@ TQPtrList<TQDnsRR> * TQDnsDomain::cached( const TQDns * r )
// we haven't done it before, so maybe we should. but
// wait - if it's an unqualified name, only ask when all
// the other alternatives are exhausted.
- if ( q == m->queries.size() && ( s.tqfind( QLatin1Char('.') ) >= 0 ||
+ if ( q == m->queries.size() && ( s.find( QLatin1Char('.') ) >= 0 ||
int(l->count()) >= n.count()-1 ) ) {
TQDnsQuery * query = new TQDnsQuery;
query->started = now();
query->id = ++theId;
query->t = r->recordType();
query->l = s;
- query->dns->tqreplace( (void*)r, (void*)r );
+ query->dns->replace( (void*)r, (void*)r );
TQT_BASE_OBJECT_NAME::connect( query, TQT_SIGNAL(timeout()),
TQDnsManager::manager(), TQT_SLOT(retransmit()) );
TQDnsManager::manager()->transmitQuery( query );
} else if ( q < m->queries.size() ) {
// if we've found an earlier query for the same
// domain/type, subscribe to its answer
- m->queries[q]->dns->tqreplace( (void*)r, (void*)r );
+ m->queries[q]->dns->replace( (void*)r, (void*)r );
}
}
}
@@ -1822,7 +1822,7 @@ void TQDns::setLabel( const TQHostAddress & address )
\value Mx Mail eXchanger names. Used for mail delivery.
- \value Srv SeRVer names. Generic record type for tqfinding
+ \value Srv SeRVer names. Generic record type for finding
servers. So far mostly unused.
\value Cname Canonical names. Maps from nicknames to the true
@@ -2021,7 +2021,7 @@ TQValueList<TQHostAddress> TQDns::addresses() const
/*!
Returns a list of mail servers if the record type is \c Mx. The
- class TQDns::MailServer tqcontains the following public variables:
+ class TQDns::MailServer contains the following public variables:
\list
\i TQString TQDns::MailServer::name
\i Q_UINT16 TQDns::MailServer::priority
@@ -2065,7 +2065,7 @@ TQValueList<TQDns::MailServer> TQDns::mailServers() const
/*!
Returns a list of servers if the record type is \c Srv. The class
- TQDns::Server tqcontains the following public variables:
+ TQDns::Server contains the following public variables:
\list
\i TQString TQDns::Server::name
\i Q_UINT16 TQDns::Server::priority
@@ -2359,7 +2359,7 @@ void TQDns::doResInit()
if ( !nameServer.isEmpty() ) {
first = 0;
do {
- last = nameServer.tqfind( QLatin1Char(separator), first );
+ last = nameServer.find( QLatin1Char(separator), first );
if ( last < 0 )
last = nameServer.length();
TQDns tmp( nameServer.mid( first, last-first ), TQDns::A );
@@ -2375,7 +2375,7 @@ void TQDns::doResInit()
searchList = searchList.simplifyWhiteSpace().lower();
first = 0;
do {
- last = searchList.tqfind( QLatin1Char(separator), first );
+ last = searchList.find( QLatin1Char(separator), first );
if ( last < 0 )
last = searchList.length();
theDomains->append( qstrdup( searchList.mid( first, last-first ).latin1() ) );
@@ -2496,7 +2496,7 @@ void TQDns::doResInit()
struct __res_state res;
res_ninit( &res );
int i;
- // tqfind the name servers to use
+ // find the name servers to use
for( i=0; i < MAXNS && i < res.nscount; i++ )
theNs->append( new TQHostAddress( ntohl( res.nsaddr_list[i].sin_addr.s_addr ) ) );
# if defined(MAXDFLSRCH)
@@ -2512,7 +2512,7 @@ void TQDns::doResInit()
#else
res_init();
int i;
- // tqfind the name servers to use
+ // find the name servers to use
for( i=0; i < MAXNS && i < _res.nscount; i++ )
theNs->append( new TQHostAddress( ntohl( _res.nsaddr_list[i].sin_addr.s_addr ) ) );
# if defined(MAXDFLSRCH)
@@ -2541,7 +2541,7 @@ void TQDns::doResInit()
QFile hosts( TQString::fromLatin1( "/etc/hosts" ) );
if ( hosts.open( QIODevice::ReadOnly ) ) {
// read the /etc/hosts file, creating long-life A and PTR RRs
- // for the things we tqfind.
+ // for the things we find.
QTextStream i( &hosts );
TQString line;
while( !i.atEnd() ) {
@@ -3365,7 +3365,7 @@ void TQDnsAnswer::parse()
if ( rr->target.length() && rr->deleteTime > 0 && rr->current )
used.insert( rr->target, (void*)42 );
if ( ( rr->t == TQDns::A || rr->t == TQDns::Aaaa ) &&
- used.tqfind( rr->domain->name() ) != 0 )
+ used.find( rr->domain->name() ) != 0 )
rr->deleteTime = rr->expireTime;
}
@@ -3432,7 +3432,7 @@ void TQDnsAnswer::notify()
it.toFirst();
while( (dns=(TQDns*)(it.current())) != 0 ) {
++it;
- if ( notified.tqfind( (void*)dns ) == 0 ) {
+ if ( notified.find( (void*)dns ) == 0 ) {
notified.insert( (void*)dns, (void*)42 );
if ( rrs->count() == 0 ) {
#if defined(TQDNS_DEBUG)
@@ -3442,7 +3442,7 @@ void TQDnsAnswer::notify()
((TQDnsUgleHack*)dns)->ugle( TRUE );
} else {
TQStringList n = dns->qualifiedNames();
- if ( query && n.tqcontains(query->l) )
+ if ( query && n.contains(query->l) )
((TQDnsUgleHack*)dns)->ugle();
#if defined(TQDNS_DEBUG)
else
@@ -3796,7 +3796,7 @@ void TQDnsManager::transmitQuery( int i )
int pp = 12;
uint lp = 0;
while( lp < q->l.length() ) {
- int le = q->l.tqfind( '.', lp );
+ int le = q->l.find( '.', lp );
if ( le < 0 )
le = q->l.length();
TQString component = q->l.mid( lp, le-lp );
@@ -3848,7 +3848,7 @@ void TQDnsManager::transmitQuery( int i )
TQDns::doResInit();
if ( !ns || ns->isEmpty() ) {
- // we don't tqfind any name servers. We fake an NXDomain
+ // we don't find any name servers. We fake an NXDomain
// with a very short life time...
TQDnsAnswer answer( q );
answer.notify();
@@ -3904,7 +3904,7 @@ void TQDnsManager::transmitQuery( int i )
TQDnsDomain * TQDnsManager::domain( const TQString & label )
{
- TQDnsDomain * d = cache.tqfind( label );
+ TQDnsDomain * d = cache.find( label );
if ( !d ) {
d = new TQDnsDomain( label );
cache.insert( label, d );
@@ -4104,21 +4104,21 @@ TQPtrList<TQDnsRR> * TQDnsDomain::cached( const TQDns * r )
// we haven't done it before, so maybe we should. but
// wait - if it's an unqualified name, only ask when all
// the other alternatives are exhausted.
- if ( q == m->queries.size() && ( s.tqfind( '.' ) >= 0 ||
+ if ( q == m->queries.size() && ( s.find( '.' ) >= 0 ||
l->count() >= n.count()-1 ) ) {
TQDnsQuery * query = new TQDnsQuery;
query->started = now();
query->id = ++::id;
query->t = r->recordType();
query->l = s;
- query->dns->tqreplace( (void*)r, (void*)r );
+ query->dns->replace( (void*)r, (void*)r );
TQObject::connect( query, TQT_SIGNAL(timeout()),
TQDnsManager::manager(), TQT_SLOT(retransmit()) );
TQDnsManager::manager()->transmitQuery( query );
} else if ( q < m->queries.size() ) {
// if we've found an earlier query for the same
// domain/type, subscribe to its answer
- m->queries[q]->dns->tqreplace( (void*)r, (void*)r );
+ m->queries[q]->dns->replace( (void*)r, (void*)r );
}
}
}
@@ -4442,7 +4442,7 @@ void TQDns::setLabel( const TQHostAddress & address )
\value Mx Mail eXchanger names. Used for mail delivery.
- \value Srv SeRVer names. Generic record type for tqfinding
+ \value Srv SeRVer names. Generic record type for finding
servers. So far mostly unused.
\value Cname Canonical names. Maps from nicknames to the true
@@ -4653,7 +4653,7 @@ TQValueList<TQHostAddress> TQDns::addresses() const
/*!
Returns a list of mail servers if the record type is \c Mx. The
- class \c TQDns::MailServer tqcontains the following public variables:
+ class \c TQDns::MailServer contains the following public variables:
\list
\i TQString TQDns::MailServer::name
\i TQ_UINT16 TQDns::MailServer::priority
@@ -4709,7 +4709,7 @@ TQValueList<TQDns::MailServer> TQDns::mailServers() const
/*!
Returns a list of servers if the record type is \c Srv. The class
- \c TQDns::Server tqcontains the following public variables:
+ \c TQDns::Server contains the following public variables:
\list
\i TQString TQDns::Server::name
\i TQ_UINT16 TQDns::Server::priority
@@ -5056,7 +5056,7 @@ void TQDns::doResInit()
if ( !nameServer.isEmpty() ) {
first = 0;
do {
- last = nameServer.tqfind( separator, first );
+ last = nameServer.find( separator, first );
if ( last < 0 )
last = nameServer.length();
TQDns tmp( nameServer.mid( first, last-first ), TQDns::A );
@@ -5072,7 +5072,7 @@ void TQDns::doResInit()
searchList = searchList.simplifyWhiteSpace().lower();
first = 0;
do {
- last = searchList.tqfind( separator, first );
+ last = searchList.find( separator, first );
if ( last < 0 )
last = searchList.length();
domains->append( qstrdup( searchList.mid( first, last-first ) ) );
@@ -5194,7 +5194,7 @@ void TQDns::doResInit()
struct __res_state res;
res_ninit( &res );
int i;
- // tqfind the name servers to use
+ // find the name servers to use
for( i=0; i < MAXNS && i < res.nscount; i++ )
ns->append( new TQHostAddress( ntohl( res.nsaddr_list[i].sin_addr.s_addr ) ) );
# if defined(MAXDFLSRCH)
@@ -5210,7 +5210,7 @@ void TQDns::doResInit()
#else
qdns_res_init();
int i;
- // tqfind the name servers to use
+ // find the name servers to use
for( i=0; i < MAXNS && i < _res.nscount; i++ )
ns->append( new TQHostAddress( ntohl( _res.nsaddr_list[i].sin_addr.s_addr ) ) );
# if defined(MAXDFLSRCH)
@@ -5239,7 +5239,7 @@ void TQDns::doResInit()
TQFile hosts( TQString::tqfromLatin1( "/etc/hosts" ) );
if ( hosts.open( IO_ReadOnly ) ) {
// read the /etc/hosts file, creating long-life A and PTR RRs
- // for the things we tqfind.
+ // for the things we find.
TQTextStream i( &hosts );
TQString line;
while( !i.atEnd() ) {