9#ifndef BLUEZQT_GATTDESCRIPTORREMOTE_H
10#define BLUEZQT_GATTDESCRIPTORREMOTE_H
16#include "bluezqt_export.h"
21class GattCharacteristicRemote;
34 Q_PROPERTY(QString ubi READ ubi CONSTANT)
35 Q_PROPERTY(QString uuid READ uuid NOTIFY uuidChanged)
36 Q_PROPERTY(QByteArray value READ value NOTIFY valueChanged)
37 Q_PROPERTY(QStringList flags READ flags NOTIFY flagsChanged)
38 Q_PROPERTY(quint16 handle READ handle NOTIFY handleChanged)
39 Q_PROPERTY(GattCharacteristicRemotePtr characteristic READ characteristic CONSTANT)
160 BLUEZQT_NO_EXPORT
explicit GattDescriptorRemote(
const QString &path,
const QVariantMap &properties, GattCharacteristicRemotePtr characteristic);
162 const std::unique_ptr<class GattDescriptorRemotePrivate> d;
164 friend class DevicePrivate;
165 friend class GattServiceRemotePrivate;
166 friend class GattCharacteristicRemotePrivate;
167 friend class GattDescriptorRemotePrivate;
168 friend class ManagerPrivate;
Bluetooth adapter.
Definition adapter.h:33
Bluetooth LE GATT descriptor.
Definition gattdescriptorremote.h:32
void descriptorChanged(GattDescriptorRemotePtr descriptor)
Indicates that at least one of the descriptors's properties have changed.
PendingCall * readValue(const QVariantMap &options)
Read the value of the GATT descriptor.
GattDescriptorRemotePtr toSharedPtr() const
Returns a shared pointer from this.
void uuidChanged(const QString &uuid)
Indicates that descriptor's uuid have changed.
QString ubi() const
Returns an UBI of the GATT descriptor.
GattCharacteristicRemotePtr characteristic() const
Returns a characteristic that owns that descriptor.
void flagsChanged(QStringList flags)
Indicates that descriptor's flags have changed.
~GattDescriptorRemote() override
Destroys a GattDescriptor object.
PendingCall * setHandle(quint16 handle)
Sets the descriptor handle.
quint16 handle() const
Returns descriptor handle.
void valueChanged(const QByteArray value)
Indicates that descriptor's value have changed.
QString uuid() const
Returns an uuid of the descriptor.
PendingCall * writeValue(const QByteArray &value, const QVariantMap &options)
Write the value of the GATT descriptor.
void handleChanged(quint16 handle)
Indicates that descriptor's handle have changed.
QByteArray value() const
Returns an value of the descriptor.
QStringList flags() const
Returns flags the descriptor.
Pending method call.
Definition pendingcall.h:33