DNSSD
domainbrowser.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef DNSSDDOMAINBROWSER_H
00022 #define DNSSDDOMAINBROWSER_H
00023
00024 #include <QtCore/QObject>
00025 #include <dnssd/remoteservice.h>
00026
00027 class QStringList;
00028 namespace DNSSD
00029 {
00030 class DomainBrowserPrivate;
00031
00054 class KDNSSD_EXPORT DomainBrowser : public QObject
00055 {
00056 Q_OBJECT
00057 public:
00061 enum DomainType
00062 {
00064 Browsing,
00066 Publishing
00067 };
00079 explicit DomainBrowser(DomainType type, QObject* parent = 0);
00080
00081 ~DomainBrowser();
00082
00088 QStringList domains() const;
00089
00102 void startBrowse();
00103
00109 bool isRunning() const;
00110
00111 Q_SIGNALS:
00123 void domainRemoved(const QString& domain);
00124
00136 void domainAdded(const QString& domain);
00137
00138 private:
00139 friend class DomainBrowserPrivate;
00140 DomainBrowserPrivate* const d;
00141 };
00142
00143 }
00144
00145 #endif