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