KDNSSD

dummy-servicebrowser.cpp
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 #include <QStringList>
10 #include "domainbrowser.h"
11 #include "servicebrowser.h"
12 #include <QHash>
13 
14 namespace KDNSSD
15 {
16 
17 ServiceBrowser::ServiceBrowser(const QString &, bool, const QString &, const QString &) : d(nullptr)
18 {}
19 
21 {
22  return false;
23 }
24 
26 {
27  return Unsupported;
28 }
29 ServiceBrowser::~ ServiceBrowser()
30 {
31 }
32 
34 {
35  emit finished();
36 }
37 
39 {
41 }
42 
43 void ServiceBrowser::virtual_hook(int, void *)
44 {}
45 
47 {
48  Q_UNUSED(hostname);
49  return QHostAddress();
50 }
51 
53 {
54  return QString();
55 }
56 
57 }
58 
59 #include "moc_servicebrowser.cpp"
ServiceBrowser(const QString &type, bool autoResolve=false, const QString &domain=QString(), const QString &subtype=QString())
Create a ServiceBrowser for a particular service type.
virtual void startBrowse()
Starts browsing for services.
bool isAutoResolving() const
Whether discovered services are resolved before being reported.
static State isAvailable()
Checks availability of DNS-SD services.
State
Availability of DNS-SD services.
static QHostAddress resolveHostName(const QString &hostname)
Resolves an mDNS hostname into an IP address.
QList< RemoteService::Ptr > services() const
The currently known services of the specified type.
static QString getLocalHostName()
The mDNS hostname of the local machine.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 11 2020 22:41:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.