| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: 2014-2015 David Rosca <[email protected]> |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef DEVICEMANAGER_H |
| 8 |
#define DEVICEMANAGER_H |
| 9 |
|
| 10 |
#include <QObject> |
| 11 |
|
| 12 |
class ObjectManager; |
| 13 |
|
| 14 |
class DeviceManager : public QObject |
| 15 |
{ |
| 16 |
Q_OBJECT |
| 17 |
|
| 18 |
public: |
| 19 |
explicit DeviceManager(ObjectManager *parent = nullptr); |
| 20 |
|
| 21 |
void runAction(const QString &actionName, const QVariantMap &properties); |
| 22 |
|
| 23 |
private: |
| 24 |
void runCreateAdapterAction(const QVariantMap &properties); |
| 25 |
void runCreateDeviceAction(const QVariantMap &properties); |
| 26 |
void runCreateGattServiceAction(const QVariantMap &properties); |
| 27 |
void runCreateGattCharacteristicAction(const QVariantMap &properties); |
| 28 |
void runCreateGattDescriptorAction(const QVariantMap &properties); |
| 29 |
void runRemoveAdapterAction(const QVariantMap &properties); |
| 30 |
void runRemoveDeviceAction(const QVariantMap &properties); |
| 31 |
void runRemoveGattServiceAction(const QVariantMap &properties); |
| 32 |
void runRemoveGattCharacteristicAction(const QVariantMap &properties); |
| 33 |
void runRemoveGattDescriptorAction(const QVariantMap &properties); |
| 34 |
void runChangeAdapterProperty(const QVariantMap &properties); |
| 35 |
void runChangeDeviceProperty(const QVariantMap &properties); |
| 36 |
void runAdapterMediaAction(const QString action, const QVariantMap &properties); |
| 37 |
void runAdapterLeAdvertisingManagerAction(const QString action, const QVariantMap &properties); |
| 38 |
void runAdapterGattManagerAction(const QString action, const QVariantMap &properties); |
| 39 |
void runBug377405(); |
| 40 |
void runBug403289(const QVariantMap &properties); |
| 41 |
|
| 42 |
ObjectManager *m_objectManager; |
| 43 |
}; |
| 44 |
|
| 45 |
#endif // DEVICEMANAGER_H |