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{
14LEAdvertisement::LEAdvertisement(const QStringList &serviceUuids, QObject *parent)
15 : QObject(parent)
16 , d(new LEAdvertisementPrivate(serviceUuids))
17{
18}
19
20LEAdvertisement::~LEAdvertisement() = default;
21
22QDBusObjectPath LEAdvertisement::objectPath() const
23{
24 return d->m_objectPath;
25}
26
27QStringList LEAdvertisement::serviceUuids() const
28{
29 return d->m_serviceUuids;
30}
31
32QHash<QString, QByteArray> LEAdvertisement::serviceData() const
33{
34 return d->m_serviceData;
35}
36
37void LEAdvertisement::setServiceData(const QHash<QString, QByteArray> &data)
38{
39 d->m_serviceData = data;
40}
41
42QHash<quint16, QByteArray> LEAdvertisement::manufacturerData() const
43{
44 return d->m_manufacturerData;
45}
46
47void LEAdvertisement::setManufacturerData(const QHash<quint16, QByteArray> &data)
48{
49 d->m_manufacturerData = data;
50}
51
52void LEAdvertisement::release()
53{
54}
55
56} // namespace BluezQt
57
58#include "moc_leadvertisement.cpp"
59

source code of bluez-qt/src/leadvertisement.cpp