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 "gattserviceadaptor.h"
0010 
0011 #include "gattservice.h"
0012 #include "request.h"
0013 
0014 #include <QDBusObjectPath>
0015 
0016 namespace BluezQt
0017 {
0018 GattServiceAdaptor::GattServiceAdaptor(GattService *parent)
0019     : QDBusAbstractAdaptor(parent)
0020     , m_gattService(parent)
0021 {
0022 }
0023 
0024 QString GattServiceAdaptor::uuid() const
0025 {
0026     return m_gattService->uuid();
0027 }
0028 
0029 bool GattServiceAdaptor::primary() const
0030 {
0031     return m_gattService->isPrimary();
0032 }
0033 
0034 } // namespace BluezQt
0035 
0036 #include "moc_gattserviceadaptor.cpp"