summaryrefslogtreecommitdiffstats
path: root/dnssd/responder.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /dnssd/responder.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dnssd/responder.cpp')
-rw-r--r--dnssd/responder.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/dnssd/responder.cpp b/dnssd/responder.cpp
index d92d30261..d85358429 100644
--- a/dnssd/responder.cpp
+++ b/dnssd/responder.cpp
@@ -19,8 +19,8 @@
*/
#include "responder.h"
-#include <qapplication.h>
-#include <qeventloop.h>
+#include <tqapplication.h>
+#include <tqeventloop.h>
#include <kstaticdeleter.h>
#include <kidna.h>
#include <kdebug.h>
@@ -72,7 +72,7 @@ Responder& Responder::self()
void Responder::process()
{
- qApp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput);
+ qApp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput);
}
#ifdef HAVE_DNSSD
@@ -86,20 +86,20 @@ AvahiClientState Responder::state() const
}
#endif
-bool domainIsLocal(const QString& domain)
+bool domainIsLocal(const TQString& domain)
{
return domain.section('.',-1,-1).lower()=="local";
}
-QCString domainToDNS(const QString &domain)
+TQCString domainToDNS(const TQString &domain)
{
if (domainIsLocal(domain)) return domain.utf8();
else return KIDNA::toAsciiCString(domain);
}
-QString DNSToDomain(const char* domain)
+TQString DNSToDomain(const char* domain)
{
- if (domainIsLocal(domain)) return QString::fromUtf8(domain);
+ if (domainIsLocal(domain)) return TQString::fromUtf8(domain);
else return KIDNA::toUnicode(domain);
}