File indexing completed on 2024-12-01 12:29:48
0001 /* 0002 * BluezQt - Asynchronous Bluez wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "leadvertisement.h" 0010 #include "leadvertisement_p.h" 0011 0012 namespace BluezQt 0013 { 0014 LEAdvertisement::LEAdvertisement(const QStringList &serviceUuids, QObject *parent) 0015 : QObject(parent) 0016 , d(new LEAdvertisementPrivate(serviceUuids)) 0017 { 0018 } 0019 0020 LEAdvertisement::~LEAdvertisement() 0021 { 0022 delete d; 0023 } 0024 0025 QDBusObjectPath LEAdvertisement::objectPath() const 0026 { 0027 return d->m_objectPath; 0028 } 0029 0030 QStringList LEAdvertisement::serviceUuids() const 0031 { 0032 return d->m_serviceUuids; 0033 } 0034 0035 QHash<QString, QByteArray> LEAdvertisement::serviceData() const 0036 { 0037 return d->m_serviceData; 0038 } 0039 0040 void LEAdvertisement::setServiceData(const QHash<QString, QByteArray> &data) 0041 { 0042 d->m_serviceData = data; 0043 } 0044 0045 void LEAdvertisement::release() 0046 { 0047 } 0048 0049 } // namespace BluezQt 0050 0051 #include "moc_leadvertisement.cpp"