summaryrefslogtreecommitdiffstats
path: root/kdnssd/ioslave/dnssd.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdnssd/ioslave/dnssd.h')
-rw-r--r--kdnssd/ioslave/dnssd.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/kdnssd/ioslave/dnssd.h b/kdnssd/ioslave/dnssd.h
index 1dc1dc05..8aaa90a8 100644
--- a/kdnssd/ioslave/dnssd.h
+++ b/kdnssd/ioslave/dnssd.h
@@ -21,16 +21,16 @@
#ifndef _dnssd_H_
#define _dnssd_H_
-#include <qstring.h>
-#include <qcstring.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqcstring.h>
+#include <tqobject.h>
#include <kurl.h>
#include <kio/global.h>
#include <kio/slavebase.h>
#include <dnssd/servicebrowser.h>
#include <dnssd/remoteservice.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
class QCString;
@@ -39,11 +39,11 @@ using namespace DNSSD;
enum UrlType { RootDir, ServiceDir, Service, HelperProtocol, Invalid };
-class ZeroConfProtocol : public QObject, public KIO::SlaveBase
+class ZeroConfProtocol : public TQObject, public KIO::SlaveBase
{
Q_OBJECT
public:
- ZeroConfProtocol(const QCString& protocol, const QCString &pool_socket, const QCString &app_socket);
+ ZeroConfProtocol(const TQCString& protocol, const TQCString &pool_socket, const TQCString &app_socket);
~ZeroConfProtocol();
virtual void get(const KURL& url);
virtual void mimetype(const KURL& url);
@@ -51,26 +51,26 @@ public:
virtual void listDir(const KURL& url );
private:
// Create UDSEntry for zeroconf:/ or zeroconf:/type/ paths
- void buildDirEntry(UDSEntry& entry,const QString& name,const QString& type=QString::null,
- const QString& host=QString::null);
+ void buildDirEntry(UDSEntry& entry,const TQString& name,const TQString& type=TQString::null,
+ const TQString& host=TQString::null);
// Create UDSEntry for single services: dnssd:/type/service
- void buildServiceEntry(UDSEntry& entry,const QString& name,const QString& type,
- const QString& domain);
+ void buildServiceEntry(UDSEntry& entry,const TQString& name,const TQString& type,
+ const TQString& domain);
// Returns root dir, service dir, service or invalid
UrlType checkURL(const KURL& url);
// extract name, type and domain from URL
- void dissect(const KURL& url,QString& name,QString& type,QString& domain);
+ void dissect(const KURL& url,TQString& name,TQString& type,TQString& domain);
// resolve given service and redirect() to it or use KRun on it (used for helper protocols)
void resolveAndRedirect(const KURL& url, bool useKRun = false);
bool dnssdOK();
- QString getAttribute(const QString& name);
- QString getProtocol(const QString& type);
+ TQString getAttribute(const TQString& name);
+ TQString getProtocol(const TQString& type);
// try to load config file for given service type (or just return if already loaded)
- bool setConfig(const QString& type);
+ bool setConfig(const TQString& type);
ServiceBrowser* browser;
// service types merged from all domains - to avoid duplicates
- QStringList mergedtypes;
+ TQStringList mergedtypes;
// last resolved or still being resolved services - acts as one-entry cache
RemoteService *toResolve;
// Config file for service - also acts as one-entry cache