summaryrefslogtreecommitdiffstats
path: root/dnssd
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-12 11:17:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-12 12:39:52 +0900
commitba3b5b77e1a430dc7197df20872ba46ce2fb6fa7 (patch)
treed8b80b41bf117fe1d5caa7e7faecfab523e81153 /dnssd
parent5d320b587ba28fa3c4745e1555aff74d5651783e (diff)
downloadtdelibs-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')
-rw-r--r--dnssd/domainbrowser.cpp4
-rw-r--r--dnssd/publicservice.cpp2
-rw-r--r--dnssd/publicservice.h2
-rw-r--r--dnssd/query.cpp2
-rw-r--r--dnssd/servicebrowser.cpp20
-rw-r--r--dnssd/servicebrowser.h4
6 files changed, 17 insertions, 17 deletions
diff --git a/dnssd/domainbrowser.cpp b/dnssd/domainbrowser.cpp
index 229d56f7f..78cc2783a 100644
--- a/dnssd/domainbrowser.cpp
+++ b/dnssd/domainbrowser.cpp
@@ -86,8 +86,8 @@ DomainBrowser::DomainBrowser(TQObject *parent) : TQObject(parent)
d->m_domains+="local.";
d->m_browseLAN=true;
}
- connect(TDEApplication::kApplication(),TQT_SIGNAL(kipcMessage(int,int)),this,
- TQT_SLOT(domainListChanged(int,int)));
+ connect(TDEApplication::kApplication(),TQ_SIGNAL(kipcMessage(int,int)),this,
+ TQ_SLOT(domainListChanged(int,int)));
}
DomainBrowser::DomainBrowser(const TQStringList& domains, bool recursive, TQObject *parent) : TQObject(parent)
diff --git a/dnssd/publicservice.cpp b/dnssd/publicservice.cpp
index 05b891258..dcfc68e30 100644
--- a/dnssd/publicservice.cpp
+++ b/dnssd/publicservice.cpp
@@ -82,7 +82,7 @@ PublicService::PublicService(const TQString& name, const TQString& type, unsigne
#ifdef HAVE_DNSSD
if (Responder::self().client()) {
d->m_group = avahi_entry_group_new(Responder::self().client(), publish_callback,this);
- connect(&Responder::self(),TQT_SIGNAL(stateChanged(AvahiClientState)),this,TQT_SLOT(clientState(AvahiClientState)));
+ connect(&Responder::self(),TQ_SIGNAL(stateChanged(AvahiClientState)),this,TQ_SLOT(clientState(AvahiClientState)));
}
#endif
if (domain.isNull())
diff --git a/dnssd/publicservice.h b/dnssd/publicservice.h
index 56c3aeb87..6dad448b4 100644
--- a/dnssd/publicservice.h
+++ b/dnssd/publicservice.h
@@ -49,7 +49,7 @@ Asynchronous publishing is better for responsiveness. Example:
\code
DNSSD::PublicService *service = new DNSSD::PublicService("My files","_http._tcp",80);
-connect(service,TQT_SIGNAL(published(bool)),this,TQT_SLOT(wasPublished(bool)));
+connect(service,TQ_SIGNAL(published(bool)),this,TQ_SLOT(wasPublished(bool)));
service->publishAsync();
\endcode
diff --git a/dnssd/query.cpp b/dnssd/query.cpp
index 3306dc256..2afa62401 100644
--- a/dnssd/query.cpp
+++ b/dnssd/query.cpp
@@ -74,7 +74,7 @@ public:
Query::Query(const TQString& type, const TQString& domain)
{
d = new QueryPrivate(type,domain);
- connect(&d->timeout,TQT_SIGNAL(timeout()),this,TQT_SLOT(timeout()));
+ connect(&d->timeout,TQ_SIGNAL(timeout()),this,TQ_SLOT(timeout()));
}
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);
}
diff --git a/dnssd/servicebrowser.h b/dnssd/servicebrowser.h
index 04f2592ed..01e9d0ccd 100644
--- a/dnssd/servicebrowser.h
+++ b/dnssd/servicebrowser.h
@@ -38,8 +38,8 @@ Suppose that you need list of web servers running. Example:
\code
DNSSD::ServiceBrowser* browser = new DNSSD::ServiceBrowser("_http._tcp");
-connect(browser,TQT_SIGNAL(serviceAdded(RemoteService::Ptr)),this,TQT_SLOT(addService(RemoteService::Ptr)));
-connect(browser,TQT_SIGNAL(serviceRemoved(RemoteService::Ptr)),this,TQT_SLOT(delService(RemoteService::Ptr)));
+connect(browser,TQ_SIGNAL(serviceAdded(RemoteService::Ptr)),this,TQ_SLOT(addService(RemoteService::Ptr)));
+connect(browser,TQ_SIGNAL(serviceRemoved(RemoteService::Ptr)),this,TQ_SLOT(delService(RemoteService::Ptr)));
browser->startBrowse();
\endcode