diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-12 11:17:33 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-12 12:39:52 +0900 |
commit | ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7 (patch) | |
tree | d8b80b41bf117fe1d5caa7e7faecfab523e81153 /dnssd/servicebrowser.cpp | |
parent | 5d320b587ba28fa3c4745e1555aff74d5651783e (diff) | |
download | tdelibs-ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7.tar.gz tdelibs-ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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); } |