BluezQt::GattServiceRemote Class
Bluetooth LE GATT service. More...
- Header:
#include <BluezQt/GattServiceRemote> - CMake:
find_package(KF6 REQUIRED COMPONENTS BluezQt)
target_link_libraries(mytarget PRIVATE KF6::BluezQt) - Inherits: QObject
List of all members, including inherited members
Properties
- [read-only] characteristics : QList<GattCharacteristicRemotePtr>
- [read-only] device : const DevicePtr
- handle : quint16
- [read-only] includes : QList<QDBusObjectPath>
- [read-only] primary : bool
- [read-only] uuid : QString
Public Functions
- QList<BluezQt::GattCharacteristicRemotePtr> characteristics() const
- BluezQt::DevicePtr device() const
- quint16 handle() const
- QList<QDBusObjectPath> includes() const
- bool isPrimary() const
- BluezQt::PendingCall *setHandle(quint16 handle)
- BluezQt::GattServiceRemotePtr toSharedPtr() const
- QString ubi() const
- QString uuid() const
Signals
- void characteristicsChanged(QList<BluezQt::GattCharacteristicRemotePtr> characteristics)
- void gattCharacteristicAdded(BluezQt::GattCharacteristicRemotePtr characteristic)
- void gattCharacteristicChanged(BluezQt::GattCharacteristicRemotePtr characteristic)
- void gattCharacteristicRemoved(BluezQt::GattCharacteristicRemotePtr characteristic)
- void handleChanged(quint16 handle)
- void includesChanged(const QList<QDBusObjectPath> &includes)
- void primaryChanged(bool primary)
- void serviceChanged(BluezQt::GattServiceRemotePtr service)
- void uuidChanged(const QString &uuid)
Detailed Description
This class represents a Bluetooth LE GATT service.
Property Documentation
[read-only] characteristics : QList<GattCharacteristicRemotePtr>
Access functions:
QList<BluezQt::GattCharacteristicRemotePtr> characteristics() const
Notifier signal:
voidcharacteristicsChanged(QList<BluezQt::GattCharacteristicRemotePtr> characteristics)
[read-only] device : const DevicePtr
Access functions:
BluezQt::DevicePtrdevice() const
handle : quint16
Access functions:
Notifier signal:
voidhandleChanged(quint16handle)
[read-only] includes : QList<QDBusObjectPath>
Access functions:
QList<QDBusObjectPath> includes() const
Notifier signal:
voidincludesChanged(constQList<QDBusObjectPath> &includes)
[read-only] primary : bool
Access functions:
boolisPrimary() const
Notifier signal:
voidprimaryChanged(boolprimary)
[read-only] uuid : QString
Access functions:
QStringuuid() const
Notifier signal:
voiduuidChanged(constQString&uuid)
Member Function Documentation
QList<BluezQt::GattCharacteristicRemotePtr> GattServiceRemote::characteristics() const
Returns object paths representing the included services of this service.
Note: Getter function for property characteristics.
[signal] void GattServiceRemote::characteristicsChanged(QList<BluezQt::GattCharacteristicRemotePtr> characteristics)
Indicates that the service characteristics list has changed.
Note: Notifier signal for property characteristics.
BluezQt::DevicePtr GattServiceRemote::device() const
Returns the device that has this service.
Note: Getter function for property device.
[signal] void GattServiceRemote::gattCharacteristicAdded(BluezQt::GattCharacteristicRemotePtr characteristic)
Indicates that a new characteristic was added (eg. found by connection).
[signal] void GattServiceRemote::gattCharacteristicChanged(BluezQt::GattCharacteristicRemotePtr characteristic)
Indicates that at least one of the characteristic's properties has changed.
[signal] void GattServiceRemote::gattCharacteristicRemoved(BluezQt::GattCharacteristicRemotePtr characteristic)
Indicates that a characteristic was removed.
quint16 GattServiceRemote::handle() const
Returns service handle.
Returns qint16 service handle
Note: Getter function for property handle.
See also setHandle()
[signal] void GattServiceRemote::handleChanged(quint16 handle)
Indicates that the services's handle has changed.
Note: Notifier signal for property handle.
QList<QDBusObjectPath> GattServiceRemote::includes() const
Returns object paths representing the included services of this service.
Note: Getter function for property includes.
[signal] void GattServiceRemote::includesChanged(const QList<QDBusObjectPath> &includes)
Indicates that the object paths representing the included services includes have changed.
Note: Notifier signal for property includes.
bool GattServiceRemote::isPrimary() const
Returns whether the service is primary.
Note: Getter function for property primary.
[signal] void GattServiceRemote::primaryChanged(bool primary)
Indicates that the services's primary state has changed.
Note: Notifier signal for property primary.
[signal] void GattServiceRemote::serviceChanged(BluezQt::GattServiceRemotePtr service)
Indicates that at least one of the service's properties has changed.
BluezQt::PendingCall *GattServiceRemote::setHandle(quint16 handle)
Sets the service handle.
Returns void pending call.
Note: Setter function for property handle.
See also handle()
BluezQt::GattServiceRemotePtr GattServiceRemote::toSharedPtr() const
Returns a shared pointer from this.
QString GattServiceRemote::ubi() const
Returns the UBI of the gatt service.
Example UBI: "/org/bluez/hci0/dev_40_79_6A_0C_39_75/service01"
QString GattServiceRemote::uuid() const
Returns the UUID of the service.
Note: Getter function for property uuid.
[signal] void GattServiceRemote::uuidChanged(const QString &uuid)
Indicates that the service's uuid has changed.
Note: Notifier signal for property uuid.