BluezQt

gattserviceadaptor.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 #pragma once
10 
11 #include <QDBusAbstractAdaptor>
12 
13 namespace BluezQt
14 {
15 class GattService;
16 
17 class GattServiceAdaptor : public QDBusAbstractAdaptor
18 {
19  Q_OBJECT
20  Q_CLASSINFO("D-Bus Interface", "org.bluez.GattService1")
21  Q_PROPERTY(QString UUID READ uuid)
22  Q_PROPERTY(bool Primary READ primary)
23 
24 public:
25  explicit GattServiceAdaptor(GattService *parent);
26 
27  QString uuid() const;
28 
29  bool primary() const;
30 
31 private:
32  GattService *m_gattService;
33 };
34 
35 } // 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.