File indexing completed on 2024-10-06 03:36:44
0001 /* 0002 * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef DEVICEMANAGER_H 0008 #define DEVICEMANAGER_H 0009 0010 #include <QObject> 0011 0012 class ObjectManager; 0013 0014 class DeviceManager : public QObject 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 explicit DeviceManager(ObjectManager *parent = nullptr); 0020 0021 void runAction(const QString &actionName, const QVariantMap &properties); 0022 0023 private: 0024 void runCreateAdapterAction(const QVariantMap &properties); 0025 void runCreateDeviceAction(const QVariantMap &properties); 0026 void runCreateGattServiceAction(const QVariantMap &properties); 0027 void runCreateGattCharacteristicAction(const QVariantMap &properties); 0028 void runCreateGattDescriptorAction(const QVariantMap &properties); 0029 void runRemoveAdapterAction(const QVariantMap &properties); 0030 void runRemoveDeviceAction(const QVariantMap &properties); 0031 void runRemoveGattServiceAction(const QVariantMap &properties); 0032 void runRemoveGattCharacteristicAction(const QVariantMap &properties); 0033 void runRemoveGattDescriptorAction(const QVariantMap &properties); 0034 void runChangeAdapterProperty(const QVariantMap &properties); 0035 void runChangeDeviceProperty(const QVariantMap &properties); 0036 void runAdapterMediaAction(const QString action, const QVariantMap &properties); 0037 void runAdapterLeAdvertisingManagerAction(const QString action, const QVariantMap &properties); 0038 void runAdapterGattManagerAction(const QString action, const QVariantMap &properties); 0039 void runBug377405(); 0040 void runBug403289(const QVariantMap &properties); 0041 0042 ObjectManager *m_objectManager; 0043 }; 0044 0045 #endif // DEVICEMANAGER_H