BluezQt

leadvertisementadaptor.h
1 /*
2  * BluezQt - Asynchronous Bluez wrapper library
3  *
4  * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #ifndef BLUEZQT_LEADVERTISEMENTADAPTOR_H
10 #define BLUEZQT_LEADVERTISEMENTADAPTOR_H
11 
12 #include <QDBusAbstractAdaptor>
13 
14 namespace BluezQt
15 {
16 class LEAdvertisement;
17 
18 class LEAdvertisementAdaptor : public QDBusAbstractAdaptor
19 {
20  Q_OBJECT
21  Q_CLASSINFO("D-Bus Interface", "org.bluez.LEAdvertisement1")
22  Q_PROPERTY(QString Type READ type)
23  Q_PROPERTY(QStringList ServiceUUIDs READ serviceUuids)
24  Q_PROPERTY(QHash<QString, QVariant> ServiceData READ serviceData)
25 
26 public:
27  explicit LEAdvertisementAdaptor(LEAdvertisement *parent);
28 
29  QString type() const;
30 
31  QStringList serviceUuids() const;
32  QHash<QString, QVariant> serviceData() const;
33 
34 public Q_SLOTS:
35  Q_NOREPLY void Release();
36 
37 private:
38  LEAdvertisement *m_advertisement;
39 };
40 
41 } // namespace BluezQt
42 
43 #endif // BLUEZQT_LEADVERTISEMENTADAPTOR_H
Q_OBJECTQ_OBJECT
Q_CLASSINFO(Name, Value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Sep 25 2022 04:19:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.