KDNSSD

servicetypebrowser.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 KDNSSDSERVICETYPEBROWSER_H
10 #define KDNSSDSERVICETYPEBROWSER_H
11 
12 #include <QObject>
13 #include <dnssd/remoteservice.h>
14 
15 class QStringList;
16 namespace KDNSSD
17 {
18 class ServiceTypeBrowserPrivate;
19 
35 class KDNSSD_EXPORT ServiceTypeBrowser : public QObject
36 {
37  Q_OBJECT
38 
39 public:
54  explicit ServiceTypeBrowser(const QString &domain = QString(),
55  QObject *parent = nullptr);
56 
58 
64  QStringList serviceTypes() const;
65 
78  void startBrowse();
79 
80 #if KDNSSD_ENABLE_DEPRECATED_SINCE(4, 0)
81 
86  KDNSSD_DEPRECATED_VERSION(4, 0, "Just call ServiceTypeBrowser::startBrowse() again")
87  bool isRunning() const
88  {
89  return false;
90  }
91 #endif
92 
93 Q_SIGNALS:
105  void serviceTypeRemoved(const QString &type);
106 
114  void serviceTypeAdded(const QString &type);
115 
138  void finished();
139 
140 private:
141  friend class ServiceTypeBrowserPrivate;
142  ServiceTypeBrowserPrivate *const d;
143 };
144 
145 }
146 
147 #endif
Browses the service types being published on a domain.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:40:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.