KDNSSD

remoteservice.h
1 /*
2  This file is part of the KDE project
3 
4  SPDX-FileCopyrightText: 2004, 2005 Jakub Stachowski <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef KDNSSDREMOTESERVICE_H
10 #define KDNSSDREMOTESERVICE_H
11 
12 #include <QObject>
13 #include <QMetaType>
14 #include <dnssd/servicebase.h>
15 
16 namespace KDNSSD
17 {
18 class RemoteServicePrivate;
19 
38 class KDNSSD_EXPORT RemoteService : public QObject, public ServiceBase
39 {
40  Q_OBJECT
41 
42 public:
44 
55  RemoteService(const QString &name, const QString &type, const QString &domain);
56 
57  ~RemoteService() override;
58 
77  void resolveAsync();
78 
94  bool resolve();
95 
102  bool isResolved() const;
103 
104 Q_SIGNALS:
115  void resolved(bool successful);
116 
117 protected:
118  void virtual_hook(int id, void *data) override;
119 private:
120  friend class RemoteServicePrivate;
121 
122 };
123 
124 }
125 
126 Q_DECLARE_METATYPE(KDNSSD::RemoteService::Ptr)
127 
128 #endif
Describes a service published over DNS-SD, typically on a remote machine.
Definition: remoteservice.h:38
Describes a service.
Definition: servicebase.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Nov 27 2020 22:41:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.