BluezQt

gattcharacteristicadaptor.cpp
1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#include "gattcharacteristicadaptor.h"
10#include "gattcharacteristic.h"
11#include "gattservice.h"
12
13namespace BluezQt
14{
15GattCharacteristicAdaptor::GattCharacteristicAdaptor(GattCharacteristic *parent)
16 : QDBusAbstractAdaptor(parent)
17 , m_gattCharacteristic(parent)
18{
19}
20
21QString GattCharacteristicAdaptor::uuid() const
22{
23 return m_gattCharacteristic->uuid();
24}
25
26QDBusObjectPath GattCharacteristicAdaptor::service() const
27{
28 return m_gattCharacteristic->service()->objectPath();
29}
30
31QStringList GattCharacteristicAdaptor::flags() const
32{
33 return m_gattCharacteristic->flags();
34}
35
36QByteArray GattCharacteristicAdaptor::ReadValue(const QVariantMap & /*options*/)
37{
38 return m_gattCharacteristic->readValue();
39}
40
41void GattCharacteristicAdaptor::WriteValue(const QByteArray &value, const QVariantMap & /*options*/)
42{
43 m_gattCharacteristic->writeValue(value);
44}
45
46void GattCharacteristicAdaptor::StartNotify()
47{
48 m_gattCharacteristic->startNotify();
49}
50
51void GattCharacteristicAdaptor::StopNotify()
52{
53 m_gattCharacteristic->stopNotify();
54}
55
56} // namespace BluezQt
57
58#include "moc_gattcharacteristicadaptor.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.