File indexing completed on 2024-12-01 12:29:48
0001 /* 0002 * BluezQt - Asynchronous Bluez wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef BLUEZQT_GATTSERVICEADAPTOR_H 0010 #define BLUEZQT_GATTSERVICEADAPTOR_H 0011 0012 #include <QDBusAbstractAdaptor> 0013 0014 namespace BluezQt 0015 { 0016 class GattService; 0017 0018 class GattServiceAdaptor : public QDBusAbstractAdaptor 0019 { 0020 Q_OBJECT 0021 Q_CLASSINFO("D-Bus Interface", "org.bluez.GattService1") 0022 Q_PROPERTY(QString UUID READ uuid) 0023 Q_PROPERTY(bool Primary READ primary) 0024 0025 public: 0026 explicit GattServiceAdaptor(GattService *parent); 0027 0028 QString uuid() const; 0029 0030 bool primary() const; 0031 0032 private: 0033 GattService *m_gattService; 0034 }; 0035 0036 } // namespace BluezQt 0037 0038 #endif