File indexing completed on 2024-04-28 15:17:52

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 "gattservice.h"
0010 #include "gattapplication.h"
0011 #include "gattservice_p.h"
0012 
0013 namespace BluezQt
0014 {
0015 GattService::GattService(const QString &uuid, bool isPrimary, GattApplication *parent)
0016     : QObject(parent)
0017     , d(new GattServicePrivate(uuid, isPrimary, parent->objectPath().path()))
0018 {
0019 }
0020 
0021 GattService::~GattService()
0022 {
0023     delete d;
0024 }
0025 
0026 QString GattService::uuid() const
0027 {
0028     return d->m_uuid;
0029 }
0030 
0031 bool GattService::isPrimary() const
0032 {
0033     return d->m_isPrimary;
0034 }
0035 
0036 QDBusObjectPath GattService::objectPath() const
0037 {
0038     return d->m_objectPath;
0039 }
0040 
0041 } // namespace BluezQt
0042 
0043 #include "moc_gattservice.cpp"