diff options
author | Michele Calgaro <[email protected]> | 2024-01-12 11:17:33 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-15 11:09:32 +0900 |
commit | 7f03918f8df7479b0e1a88288066201a301e87bf (patch) | |
tree | ef42e0c7ecbd6d292ca5aa7f3aeca141dd65cdb1 /dnssd/servicebrowser.cpp | |
parent | ccaaecf59c0e607be633c45ad3b7bb1ef29e981f (diff) | |
download | tdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.tar.gz tdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7)
Diffstat (limited to 'dnssd/servicebrowser.cpp')
-rw-r--r-- | dnssd/servicebrowser.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/dnssd/servicebrowser.cpp b/dnssd/servicebrowser.cpp index 3c64ffe66..58dd4c30f 100644 --- a/dnssd/servicebrowser.cpp +++ b/dnssd/servicebrowser.cpp @@ -69,9 +69,9 @@ void ServiceBrowser::init(const TQStringList& type,DomainBrowser* domains,int fl d->m_types=type; d->m_flags=flags; d->m_domains = domains; - connect(d->m_domains,TQT_SIGNAL(domainAdded(const TQString& )),this,TQT_SLOT(addDomain(const TQString& ))); - connect(d->m_domains,TQT_SIGNAL(domainRemoved(const TQString& )),this, - TQT_SLOT(removeDomain(const TQString& ))); + connect(d->m_domains,TQ_SIGNAL(domainAdded(const TQString& )),this,TQ_SLOT(addDomain(const TQString& ))); + connect(d->m_domains,TQ_SIGNAL(domainRemoved(const TQString& )),this, + TQ_SLOT(removeDomain(const TQString& ))); } ServiceBrowser::ServiceBrowser(const TQString& type,const TQString& domain,bool autoResolve) { @@ -110,7 +110,7 @@ void ServiceBrowser::serviceResolved(bool success) { TQObject* sender_obj = const_cast<TQObject*>(sender()); RemoteService* svr = static_cast<RemoteService*>(sender_obj); - disconnect(svr,TQT_SIGNAL(resolved(bool)),this,TQT_SLOT(serviceResolved(bool))); + disconnect(svr,TQ_SIGNAL(resolved(bool)),this,TQ_SLOT(serviceResolved(bool))); TQValueList<RemoteService::Ptr>::Iterator it = d->m_duringResolve.begin(); TQValueList<RemoteService::Ptr>::Iterator itEnd = d->m_duringResolve.end(); while ( it!= itEnd && svr!= (*it)) ++it; @@ -140,7 +140,7 @@ void ServiceBrowser::gotNewService(RemoteService::Ptr svr) { if (findDuplicate(svr)==(d->m_services.end())) { if (d->m_flags & AutoResolve) { - connect(svr,TQT_SIGNAL(resolved(bool )),this,TQT_SLOT(serviceResolved(bool ))); + connect(svr,TQ_SIGNAL(resolved(bool )),this,TQ_SLOT(serviceResolved(bool ))); d->m_duringResolve+=svr; svr->resolveAsync(); } else { @@ -179,11 +179,11 @@ void ServiceBrowser::addDomain(const TQString& domain) TQStringList::ConstIterator itEnd = d->m_types.end(); for (TQStringList::ConstIterator it=d->m_types.begin(); it!=itEnd; ++it) { Query* b = new Query((*it),domain); - connect(b,TQT_SIGNAL(serviceAdded(DNSSD::RemoteService::Ptr)),this, - TQT_SLOT(gotNewService(DNSSD::RemoteService::Ptr))); - connect(b,TQT_SIGNAL(serviceRemoved(DNSSD::RemoteService::Ptr )),this, - TQT_SLOT(gotRemoveService(DNSSD::RemoteService::Ptr))); - connect(b,TQT_SIGNAL(finished()),this,TQT_SLOT(queryFinished())); + connect(b,TQ_SIGNAL(serviceAdded(DNSSD::RemoteService::Ptr)),this, + TQ_SLOT(gotNewService(DNSSD::RemoteService::Ptr))); + connect(b,TQ_SIGNAL(serviceRemoved(DNSSD::RemoteService::Ptr )),this, + TQ_SLOT(gotRemoveService(DNSSD::RemoteService::Ptr))); + connect(b,TQ_SIGNAL(finished()),this,TQ_SLOT(queryFinished())); b->startQuery(); d->resolvers.insert(domain,b); } |