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
00038 class KDNSSD_EXPORT DomainBrowser : public QObject
00039 {
00040 Q_OBJECT
00041 public:
00042 enum DomainType { Browsing, Publishing };
00048 explicit DomainBrowser(DomainType type, QObject *parent=0);
00049
00050 ~DomainBrowser();
00051
00055 QStringList domains() const;
00056
00060 void startBrowse() ;
00061
00065 bool isRunning() const;
00066
00067 Q_SIGNALS:
00071 void domainRemoved(const QString&);
00076 void domainAdded(const QString&);
00077
00078 private:
00079 friend class DomainBrowserPrivate;
00080 DomainBrowserPrivate* const d;
00081 };
00082
00083 }
00084
00085 #endif