BluezQt

gattcharacteristicadaptor.h
1 /*
2  * BluezQt - Asynchronous Bluez wrapper library
3  *
4  * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #pragma once
10 
11 #include <QDBusAbstractAdaptor>
12 
13 class QDBusObjectPath;
14 
15 namespace BluezQt
16 {
17 class GattCharacteristic;
18 
19 class GattCharacteristicAdaptor : public QDBusAbstractAdaptor
20 {
21  Q_OBJECT
22  Q_CLASSINFO("D-Bus Interface", "org.bluez.GattCharacteristic1")
23  Q_PROPERTY(QString UUID READ uuid)
24  Q_PROPERTY(QDBusObjectPath Service READ service)
25  Q_PROPERTY(QStringList Flags READ flags)
26 
27 public:
28  explicit GattCharacteristicAdaptor(GattCharacteristic *parent);
29 
30  QString uuid() const;
31 
32  QDBusObjectPath service() const;
33 
34  QStringList flags() const;
35 
36 public Q_SLOTS:
37  QByteArray ReadValue(const QVariantMap &options);
38  void WriteValue(const QByteArray &value, const QVariantMap &options);
39  void StartNotify();
40  void StopNotify();
41 
42 private:
43  GattCharacteristic *m_gattCharacteristic;
44 };
45 
46 } // namespace BluezQt
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.