summaryrefslogtreecommitdiffstats
path: root/kdnssd/kdedmodule/dnssdwatcher.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kdnssd/kdedmodule/dnssdwatcher.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdnssd/kdedmodule/dnssdwatcher.cpp')
-rw-r--r--kdnssd/kdedmodule/dnssdwatcher.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kdnssd/kdedmodule/dnssdwatcher.cpp b/kdnssd/kdedmodule/dnssdwatcher.cpp
index a7eb256f..7e1ef6d2 100644
--- a/kdnssd/kdedmodule/dnssdwatcher.cpp
+++ b/kdnssd/kdedmodule/dnssdwatcher.cpp
@@ -26,7 +26,7 @@
#include "watcher.h"
-DNSSDWatcher::DNSSDWatcher(const QCString& obj)
+DNSSDWatcher::DNSSDWatcher(const TQCString& obj)
: KDEDModule(obj)
{
connectDCOPSignal("","KDirNotify","enteredDirectory(KURL)","enteredDirectory(KURL)",false);
@@ -34,12 +34,12 @@ DNSSDWatcher::DNSSDWatcher(const QCString& obj)
watchers.setAutoDelete(true);
}
-QStringList DNSSDWatcher::watchedDirectories()
+TQStringList DNSSDWatcher::watchedDirectories()
{
//TODO
// return watchers.keys();
- QStringList keys;
- for (QDictIterator<Watcher> it(watchers) ; it.current(); ++it ) {
+ TQStringList keys;
+ for (TQDictIterator<Watcher> it(watchers) ; it.current(); ++it ) {
keys << it.currentKey();
kdDebug() << it.currentKey() << " " << (*it)->refcount << "\n";
}
@@ -48,7 +48,7 @@ return keys;
// from ioslave
-void DNSSDWatcher::dissect(const KURL& url,QString& name,QString& type,QString& domain)
+void DNSSDWatcher::dissect(const KURL& url,TQString& name,TQString& type,TQString& domain)
{
type = url.path().section("/",1,1);
domain = url.host();
@@ -76,7 +76,7 @@ void DNSSDWatcher::leftDirectory(const KURL& dir)
void DNSSDWatcher::createNotifier(const KURL& url)
{
- QString domain,type,name;
+ TQString domain,type,name;
dissect(url,name,type,domain);
if (type.isEmpty()) type = DNSSD::ServiceBrowser::AllServices;
Watcher *w = new Watcher(type,domain);
@@ -84,7 +84,7 @@ void DNSSDWatcher::createNotifier(const KURL& url)
}
extern "C" {
- KDE_EXPORT KDEDModule *create_dnssdwatcher(const QCString &obj)
+ KDE_EXPORT KDEDModule *create_dnssdwatcher(const TQCString &obj)
{
KGlobal::locale()->insertCatalogue("dnssdwatcher");
return new DNSSDWatcher(obj);