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