BluezQt

leadvertisement.cpp
1 /*
2  * BluezQt - Asynchronous Bluez wrapper library
3  *
4  * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #include "leadvertisement.h"
10 #include "leadvertisement_p.h"
11 
12 namespace BluezQt
13 {
15  : QObject(parent)
16  , d(new LEAdvertisementPrivate(serviceUuids))
17 {
18 }
19 
21 {
22  delete d;
23 }
24 
26 {
27  return d->m_objectPath;
28 }
29 
31 {
32  return d->m_serviceUuids;
33 }
34 
36 {
37  return d->m_serviceData;
38 }
39 
41 {
42  d->m_serviceData = data;
43 }
44 
46 {
47 }
48 
49 } // namespace BluezQt
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.
~LEAdvertisement() override
Destroys a LEAdvertisement object.
LEAdvertisement(const QStringList &serviceUuids, QObject *parent=nullptr)
Creates a new LEAdvertisement object.
QHash< QString, QByteArray > serviceData() const
Returns the service data included in the advertisement.
virtual void release()
Indicates that the LEAdvertisement was unregistered.
virtual QDBusObjectPath objectPath() const
D-Bus object path of the advertisement.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Sep 25 2022 04:19:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.