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
21GattService::~GattService() = default;
22
23QString GattService::uuid() const
24{
25 return d->m_uuid;
26}
27
28bool GattService::isPrimary() const
29{
30 return d->m_isPrimary;
31}
32
33QDBusObjectPath GattService::objectPath() const
34{
35 return d->m_objectPath;
36}
37
38} // namespace BluezQt
39
40#include "moc_gattservice.cpp"
41

source code of bluez-qt/src/gattservice.cpp