BluezQt

gattservice.cpp
1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de>
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
13namespace BluezQt
14{
15GattService::GattService(const QString &uuid, bool isPrimary, GattApplication *parent)
16 : QObject(parent)
17 , d(new GattServicePrivate(uuid, isPrimary, parent->objectPath().path()))
18{
19}
20
22
24{
25 return d->m_uuid;
26}
27
29{
30 return d->m_isPrimary;
31}
32
34{
35 return d->m_objectPath;
36}
37
38} // namespace BluezQt
39
40#include "moc_gattservice.cpp"
Bluetooth GattApplication.
~GattService() override
Destroys a GattService object.
GattService(const QString &uuid, bool isPrimary, GattApplication *parent)
Creates a new GattService object.
virtual QDBusObjectPath objectPath() const
D-Bus object path of the GattService.
bool isPrimary() const
Indicates whether or not this GATT service is a primary service.
QString uuid() const
128-bit service UUID.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.