KDNSSD

domainbrowser.h
1 /*
2  This file is part of the KDE project
3 
4  SPDX-FileCopyrightText: 2004 Jakub Stachowski <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef KDNSSDDOMAINBROWSER_H
10 #define KDNSSDDOMAINBROWSER_H
11 
12 #include <QObject>
13 #include <dnssd/remoteservice.h>
14 
15 class QStringList;
16 namespace KDNSSD
17 {
18 class DomainBrowserPrivate;
19 
42 class KDNSSD_EXPORT DomainBrowser : public QObject
43 {
44  Q_OBJECT
45 public:
49  enum DomainType {
53  Publishing
54  };
66  explicit DomainBrowser(DomainType type, QObject *parent = nullptr);
67 
68  ~DomainBrowser();
69 
75  QStringList domains() const;
76 
89  void startBrowse();
90 
96  bool isRunning() const;
97 
98 Q_SIGNALS:
110  void domainRemoved(const QString &domain);
111 
123  void domainAdded(const QString &domain);
124 
125 private:
126  friend class DomainBrowserPrivate;
127  DomainBrowserPrivate *const d;
128 };
129 
130 }
131 
132 #endif
DomainType
A type of domain recommendation.
Definition: domainbrowser.h:49
Domains recommended for browsing for services on (using ServiceBrowser)
Definition: domainbrowser.h:51
Browses recommended domains for browsing or publishing to.
Definition: domainbrowser.h:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Dec 3 2020 22:41:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.