File indexing completed on 2025-01-12 06:37:56
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() = default; 0022 0023 QString GattService::uuid() const 0024 { 0025 return d->m_uuid; 0026 } 0027 0028 bool GattService::isPrimary() const 0029 { 0030 return d->m_isPrimary; 0031 } 0032 0033 QDBusObjectPath GattService::objectPath() const 0034 { 0035 return d->m_objectPath; 0036 } 0037 0038 } // namespace BluezQt 0039 0040 #include "moc_gattservice.cpp"