BluezQt

leadvertisement.cpp
1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de>
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
12namespace BluezQt
13{
15 : QObject(parent)
16 , d(new LEAdvertisementPrivate(serviceUuids))
17{
18}
19
21
23{
24 return d->m_objectPath;
25}
26
28{
29 return d->m_serviceUuids;
30}
31
33{
34 return d->m_serviceData;
35}
36
38{
39 d->m_serviceData = data;
40}
41
43{
44 return d->m_manufacturerData;
45}
46
48{
49 d->m_manufacturerData = data;
50}
51
55
56} // namespace BluezQt
57
58#include "moc_leadvertisement.cpp"
QHash< QString, QByteArray > serviceData() const
Returns the service data included in the advertisement.
virtual QDBusObjectPath objectPath() const
D-Bus object path of the advertisement.
virtual void release()
Indicates that the LEAdvertisement was unregistered.
void setServiceData(const QHash< QString, QByteArray > &data)
Sets the service data to include in the advertisement.
~LEAdvertisement() override
Destroys a LEAdvertisement object.
void setManufacturerData(const QHash< quint16, QByteArray > &data)
Sets the manufacturer data to be included in the advertisement.
LEAdvertisement(const QStringList &serviceUuids, QObject *parent=nullptr)
Creates a new LEAdvertisement object.
virtual QStringList serviceUuids() const
List of UUIDs to include in the "Service UUID" field of the Advertising Data.
QHash< quint16, QByteArray > manufacturerData() const
Returns the manufacturer data included in the advertisement.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.