File indexing completed on 2025-01-19 06:44:36
0001 /* 0002 * BluezQt - Asynchronous Bluez wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2022 Pontus Sjögren 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "gattdescriptoradaptor.h" 0010 #include "gattdescriptor.h" 0011 0012 namespace BluezQt 0013 { 0014 0015 GattDescriptorAdaptor::GattDescriptorAdaptor(GattDescriptor *parent) 0016 : QDBusAbstractAdaptor(parent) 0017 , m_gattDescriptor(parent) 0018 { 0019 } 0020 0021 QString GattDescriptorAdaptor::uuid() const 0022 { 0023 return m_gattDescriptor->uuid(); 0024 } 0025 0026 QDBusObjectPath GattDescriptorAdaptor::characteristic() const 0027 { 0028 return m_gattDescriptor->characteristic(); 0029 } 0030 0031 QByteArray GattDescriptorAdaptor::value() const 0032 { 0033 return m_gattDescriptor->readValue(); 0034 } 0035 0036 QStringList GattDescriptorAdaptor::flags() const 0037 { 0038 return m_gattDescriptor->flags(); 0039 } 0040 0041 QByteArray GattDescriptorAdaptor::ReadValue(const QVariantMap &options) 0042 { 0043 Q_UNUSED(options); 0044 return m_gattDescriptor->readValue(); 0045 } 0046 0047 void GattDescriptorAdaptor::WriteValue(QByteArray value) 0048 { 0049 m_gattDescriptor->writeValue(value); 0050 } 0051 0052 } 0053 0054 #include "moc_gattdescriptoradaptor.cpp"