BluezQt 5.109.0
|
Bluetooth LE advertisement. More...
#include <BluezQt/LEAdvertisement>
Public Member Functions | |
LEAdvertisement (const QStringList &serviceUuids, QObject *parent=nullptr) | |
Creates a new LEAdvertisement object. | |
~LEAdvertisement () override | |
Destroys a LEAdvertisement object. | |
virtual void | release () |
Indicates that the LEAdvertisement was unregistered. | |
QHash< QString, QByteArray > | serviceData () const |
Returns the service data included in the advertisement. | |
virtual QStringList | serviceUuids () const |
List of UUIDs to include in the "Service UUID" field of the Advertising Data. | |
void | setServiceData (const QHash< QString, QByteArray > &data) |
Sets the service data to include in the advertisement. | |
Protected Member Functions | |
virtual QDBusObjectPath | objectPath () const |
D-Bus object path of the advertisement. | |
Bluetooth LE advertisement.
This class represents a Bluetooth LE advertisement.
|
explicit |
Creates a new LEAdvertisement object.
parent |
|
override |
Destroys a LEAdvertisement object.
|
protectedvirtual |
D-Bus object path of the advertisement.
The path where the advertisement will be registered.
|
virtual |
Indicates that the LEAdvertisement was unregistered.
This method gets called when the service daemon removes the Advertisement. A client can use it to do cleanup tasks. There is no need to call UnregisterAdvertisement because when this method gets called it has already been unregistered.
QHash< QString, QByteArray > BluezQt::LEAdvertisement::serviceData | ( | ) | const |
Returns the service data included in the advertisement.
|
virtual |
List of UUIDs to include in the "Service UUID" field of the Advertising Data.
void BluezQt::LEAdvertisement::setServiceData | ( | const QHash< QString, QByteArray > & | data | ) |
Sets the service data to include in the advertisement.
Keys are the UUIDs of the associated data.