1/*
2 * BluezQt - Asynchronous BlueZ wrapper library
3 *
4 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef BLUEZQT_GATTCHARACTERISTIC_P_H
10#define BLUEZQT_GATTCHARACTERISTIC_P_H
11
12#include "dbusproperties.h"
13#include "gattcharacteristic.h"
14
15#include <memory>
16
17namespace BluezQt
18{
19
20typedef org::freedesktop::DBus::Properties DBusProperties;
21
22class GattServicePrivate;
23
24class GattCharacterisiticPrivate
25{
26public:
27 GattCharacterisiticPrivate(const QString &uuid, const QStringList &flags, const GattService *service);
28
29 QString m_uuid;
30 const GattService *m_service;
31 bool m_notifying;
32 QStringList m_flags;
33
34 bool m_canNotify;
35 QDBusObjectPath m_objectPath;
36 QByteArray m_value;
37 GattCharacteristic::ReadCallback m_readCallback = nullptr;
38 std::unique_ptr<DBusProperties> m_dbusProperties;
39
40 void emitPropertyChanged(QVariantMap updatedProperties);
41};
42
43} // namespace BluezQt
44
45#endif
46

source code of bluez-qt/src/gattcharacteristic_p.h