BluezQt::GattServiceRemote Class
class BluezQt::GattServiceRemoteBluetooth LE GATT service. More...
Header: | #include <BluezQt/GattServiceRemote> |
CMake: | find_package(KF6 REQUIRED COMPONENTS BluezQt) target_link_libraries(mytarget PRIVATE KF6::BluezQt) |
Inherits: | QObject |
Properties
|
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 : const QList<GattCharacteristicRemotePtr>
Access functions:
QList<BluezQt::GattCharacteristicRemotePtr> | characteristics() const |
Notifier signal:
void | characteristicsChanged(QList<BluezQt::GattCharacteristicRemotePtr> characteristics) |
[read-only]
device : const DevicePtr
Access functions:
BluezQt::DevicePtr | device() const |
handle : quint16
Access functions:
Notifier signal:
void | handleChanged(quint16 handle) |
[read-only]
includes : const QList<QDBusObjectPath>
Access functions:
QList<QDBusObjectPath> | includes() const |
Notifier signal:
void | includesChanged(const QList<QDBusObjectPath> &includes) |
[read-only]
primary : const bool
Access functions:
bool | isPrimary() const |
Notifier signal:
void | primaryChanged(bool primary) |
[read-only]
uuid : const QString
Access functions:
QString | uuid() const |
Notifier signal:
void | uuidChanged(const QString &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.