Pages
API Documentation
On this page

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

Public Functions

Signals

Detailed Description

This class represents a Bluetooth LE GATT service.

Property Documentation

[read-only] characteristics : QList<GattCharacteristicRemotePtr>

Access functions:

Notifier signal:

[read-only] device : const DevicePtr

Access functions:

  • BluezQt::DevicePtr device() const

handle : quint16

Access functions:

Notifier signal:

[read-only] includes : QList<QDBusObjectPath>

Access functions:

  • QList<QDBusObjectPath> includes() const

Notifier signal:

[read-only] primary : bool

Access functions:

Notifier signal:

[read-only] uuid : QString

Access functions:

  • QString uuid() const

Notifier signal:

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.