From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- dnssd/query.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'dnssd/query.cpp') diff --git a/dnssd/query.cpp b/dnssd/query.cpp index 163891c71..3306dc256 100644 --- a/dnssd/query.cpp +++ b/dnssd/query.cpp @@ -22,9 +22,9 @@ #include "responder.h" #include "remoteservice.h" #include "sdevent.h" -#include -#include -#include +#include +#include +#include #ifdef HAVE_DNSSD #include @@ -59,22 +59,22 @@ enum BrowserType { Types, Services }; class QueryPrivate { public: - QueryPrivate(const QString& type, const QString& domain) : m_finished(false), m_browser(0), + QueryPrivate(const TQString& type, const TQString& domain) : m_finished(false), m_browser(0), m_running(false), m_domain(domain), m_type(type) {} bool m_finished; BrowserType m_browserType; void* m_browser; bool m_running; - QString m_domain; - QTimer timeout; - QString m_type; + TQString m_domain; + TQTimer timeout; + TQString m_type; }; -Query::Query(const QString& type, const QString& domain) +Query::Query(const TQString& type, const TQString& domain) { d = new QueryPrivate(type,domain); - connect(&d->timeout,SIGNAL(timeout()),this,SLOT(timeout())); + connect(&d->timeout,TQT_SIGNAL(timeout()),this,TQT_SLOT(timeout())); } @@ -101,7 +101,7 @@ bool Query::isFinished() const return d->m_finished; } -const QString& Query::domain() const +const TQString& Query::domain() const { return d->m_domain; } @@ -142,9 +142,9 @@ void Query::virtual_hook(int, void*) { } -void Query::customEvent(QCustomEvent* event) +void Query::customEvent(TQCustomEvent* event) { - if (event->type()==QEvent::User+SD_ADDREMOVE) { + if (event->type()==TQEvent::User+SD_ADDREMOVE) { d->timeout.start(TIMEOUT_LAN,true); d->m_finished=false; AddRemoveEvent *aev = static_cast(event); @@ -171,11 +171,11 @@ void services_callback (AvahiServiceBrowser*, AvahiIfIndex, AvahiProtocol, Avahi const char* serviceName, const char* regtype, const char* replyDomain, void* context) #endif { - QObject *obj = reinterpret_cast(context); + TQObject *obj = reinterpret_cast(context); AddRemoveEvent* arev = new AddRemoveEvent((event==AVAHI_BROWSER_NEW) ? AddRemoveEvent::Add : - AddRemoveEvent::Remove, QString::fromUtf8(serviceName), regtype, + AddRemoveEvent::Remove, TQString::fromUtf8(serviceName), regtype, DNSToDomain(replyDomain)); - QApplication::postEvent(obj, arev); + TQApplication::postEvent(obj, arev); } #ifdef AVAHI_API_0_6 @@ -186,11 +186,11 @@ void types_callback(AvahiServiceTypeBrowser*, AvahiIfIndex, AvahiProtocol, Avahi const char* replyDomain, void* context) #endif { - QObject *obj = reinterpret_cast(context); + TQObject *obj = reinterpret_cast(context); AddRemoveEvent* arev = new AddRemoveEvent((event==AVAHI_BROWSER_NEW) ? AddRemoveEvent::Add : - AddRemoveEvent::Remove, QString::null, regtype, + AddRemoveEvent::Remove, TQString::null, regtype, DNSToDomain(replyDomain)); - QApplication::postEvent(obj, arev); + TQApplication::postEvent(obj, arev); } #endif -- cgit v1.2.3