| 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_p.h" |
| 10 | |
| 11 | namespace BluezQt |
| 12 | { |
| 13 | GattServicePrivate::GattServicePrivate(const QString &uuid, bool isPrimary, const QString &appPath) |
| 14 | : m_uuid(uuid) |
| 15 | , m_isPrimary(isPrimary) |
| 16 | { |
| 17 | static uint8_t serviceNumber = 0; |
| 18 | m_objectPath.setPath(appPath + QStringLiteral("/service" ) + QString::number(serviceNumber++)); |
| 19 | } |
| 20 | |
| 21 | } // namespace BluezQt |
| 22 | |