diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /dnssd/servicebrowser.h | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-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/servicebrowser.h')
-rw-r--r-- | dnssd/servicebrowser.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/dnssd/servicebrowser.h b/dnssd/servicebrowser.h index 5a12f4e6b..808127d0b 100644 --- a/dnssd/servicebrowser.h +++ b/dnssd/servicebrowser.h @@ -21,8 +21,8 @@ #ifndef DNSSDSERVICEBROWSER_H #define DNSSDSERVICEBROWSER_H -#include <qobject.h> -#include <qdict.h> +#include <tqobject.h> +#include <tqdict.h> #include <dnssd/remoteservice.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,SIGNAL(serviceAdded(RemoteService::Ptr)),this,SLOT(addService(RemoteService::Ptr))); -connect(browser,SIGNAL(serviceRemoved(RemoteService::Ptr)),this,SLOT(delService(RemoteService::Ptr))); +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))); browser->startBrowse(); \endcode @@ -88,7 +88,7 @@ public: @since 3.5 @todo KDE4: set default values for domains and flags */ - ServiceBrowser(const QStringList& types,DomainBrowser* domains,int flags); + ServiceBrowser(const TQStringList& types,DomainBrowser* domains,int flags); /** The same as above, but allows only one service type @@ -97,7 +97,7 @@ public: @param autoResolve auto resolve, if set @deprecated use previous constructor instead */ - ServiceBrowser(const QString& type,DomainBrowser* domains=0,bool autoResolve=false); + ServiceBrowser(const TQString& type,DomainBrowser* domains=0,bool autoResolve=false); /** Overloaded constructor used to create browser for one domain @@ -108,19 +108,19 @@ public: @param flags One or more values from #Flags. AutoDelete flag has no effect @since 3.5 */ - ServiceBrowser(const QString& type,const QString& domain, int flags); + ServiceBrowser(const TQString& type,const TQString& domain, int flags); /** @deprecated user previous constructor instead */ - ServiceBrowser(const QString& type,const QString& domain, bool autoResolve=false); + ServiceBrowser(const TQString& type,const TQString& domain, bool autoResolve=false); ~ServiceBrowser(); /** Returns list of services */ - const QValueList<RemoteService::Ptr>& services() const; + const TQValueList<RemoteService::Ptr>& services() const; /** Starts browsing for services. @@ -139,7 +139,7 @@ public: Special service type to search for all available service types. Pass it as "type" parameter to ServiceBrowser constructor. */ - static const QString AllServices; + static const TQString AllServices; /** Checks availability of DNS-SD services (this also covers publishing). @@ -199,12 +199,12 @@ public slots: /** Remove one domain from list of domains to browse */ - void removeDomain(const QString& domain); + void removeDomain(const TQString& domain); /** Add new domain to browse */ - void addDomain(const QString& domain); + void addDomain(const TQString& domain); protected: virtual void virtual_hook(int, void*); @@ -212,8 +212,8 @@ private: ServiceBrowserPrivate *d; bool allFinished(); - void init(const QStringList&, DomainBrowser*, int); - QValueList<RemoteService::Ptr>::Iterator findDuplicate(RemoteService::Ptr src); + void init(const TQStringList&, DomainBrowser*, int); + TQValueList<RemoteService::Ptr>::Iterator findDuplicate(RemoteService::Ptr src); private slots: void serviceResolved(bool success); void gotNewService(DNSSD::RemoteService::Ptr); |