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
45
46} // namespace BluezQt
47
48#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.
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.
D-Bus request.
Definition request.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:51 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.