File indexing completed on 2025-01-19 06:44:35
0001 /* 0002 * BluezQt - Asynchronous Bluez wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "gattcharacteristicadaptor.h" 0010 #include "gattcharacteristic.h" 0011 #include "gattservice.h" 0012 0013 namespace BluezQt 0014 { 0015 GattCharacteristicAdaptor::GattCharacteristicAdaptor(GattCharacteristic *parent) 0016 : QDBusAbstractAdaptor(parent) 0017 , m_gattCharacteristic(parent) 0018 { 0019 } 0020 0021 QString GattCharacteristicAdaptor::uuid() const 0022 { 0023 return m_gattCharacteristic->uuid(); 0024 } 0025 0026 QDBusObjectPath GattCharacteristicAdaptor::service() const 0027 { 0028 return m_gattCharacteristic->service()->objectPath(); 0029 } 0030 0031 QStringList GattCharacteristicAdaptor::flags() const 0032 { 0033 return m_gattCharacteristic->flags(); 0034 } 0035 0036 QByteArray GattCharacteristicAdaptor::ReadValue(const QVariantMap & /*options*/) 0037 { 0038 return m_gattCharacteristic->readValue(); 0039 } 0040 0041 void GattCharacteristicAdaptor::WriteValue(const QByteArray &value, const QVariantMap & /*options*/) 0042 { 0043 m_gattCharacteristic->writeValue(value); 0044 } 0045 0046 void GattCharacteristicAdaptor::StartNotify() 0047 { 0048 m_gattCharacteristic->startNotify(); 0049 } 0050 0051 void GattCharacteristicAdaptor::StopNotify() 0052 { 0053 m_gattCharacteristic->stopNotify(); 0054 } 0055 0056 } // namespace BluezQt 0057 0058 #include "moc_gattcharacteristicadaptor.cpp"