BluezQt

gattservice.cpp
1 /*
2  * BluezQt - Asynchronous Bluez wrapper library
3  *
4  * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #include "gattservice.h"
10 #include "gattapplication.h"
11 #include "gattservice_p.h"
12 
13 namespace BluezQt
14 {
15 GattService::GattService(const QString &uuid, bool isPrimary, GattApplication *parent)
16  : QObject(parent)
17  , d(new GattServicePrivate(uuid, isPrimary, parent->objectPath().path()))
18 {
19 }
20 
22 {
23  delete d;
24 }
25 
27 {
28  return d->m_uuid;
29 }
30 
32 {
33  return d->m_isPrimary;
34 }
35 
37 {
38  return d->m_objectPath;
39 }
40 
41 } // namespace BluezQt
~GattService() override
Destroys a GattService object.
Definition: gattservice.cpp:21
GattService(const QString &uuid, bool isPrimary, GattApplication *parent)
Creates a new GattService object.
Definition: gattservice.cpp:15
virtual QDBusObjectPath objectPath() const
D-Bus object path of the GattService.
Definition: gattservice.cpp:36
bool isPrimary() const
Indicates whether or not this GATT service is a primary service.
Definition: gattservice.cpp:31
QString uuid() const
128-bit service UUID.
Definition: gattservice.cpp:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Sep 25 2022 04:19:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.