BluezQt

gattdescriptoradaptor.cpp
1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2022 Pontus Sjögren
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#include "gattdescriptoradaptor.h"
10#include "gattdescriptor.h"
11
12namespace BluezQt
13{
14
15GattDescriptorAdaptor::GattDescriptorAdaptor(GattDescriptor *parent)
16 : QDBusAbstractAdaptor(parent)
17 , m_gattDescriptor(parent)
18{
19}
20
21QString GattDescriptorAdaptor::uuid() const
22{
23 return m_gattDescriptor->uuid();
24}
25
26QDBusObjectPath GattDescriptorAdaptor::characteristic() const
27{
28 return m_gattDescriptor->characteristic();
29}
30
31QByteArray GattDescriptorAdaptor::value() const
32{
33 return m_gattDescriptor->readValue();
34}
35
36QStringList GattDescriptorAdaptor::flags() const
37{
38 return m_gattDescriptor->flags();
39}
40
41QByteArray GattDescriptorAdaptor::ReadValue(const QVariantMap &options)
42{
43 Q_UNUSED(options);
44 return m_gattDescriptor->readValue();
45}
46
47void GattDescriptorAdaptor::WriteValue(QByteArray value)
48{
49 m_gattDescriptor->writeValue(value);
50}
51
52}
53
54#include "moc_gattdescriptoradaptor.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.