File indexing completed on 2024-12-01 12:29:48
0001 /* 0002 * BluezQt - Asynchronous Bluez wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "gattservice_p.h" 0010 0011 namespace BluezQt 0012 { 0013 GattServicePrivate::GattServicePrivate(const QString &uuid, bool isPrimary, const QString &appPath) 0014 : m_uuid(uuid) 0015 , m_isPrimary(isPrimary) 0016 { 0017 static uint8_t serviceNumber = 0; 0018 m_objectPath.setPath(appPath + QStringLiteral("/service") + QString::number(serviceNumber++)); 0019 } 0020 0021 } // namespace BluezQt