Warning, file /frameworks/bluez-qt/autotests/gattserviceremotetest.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Ivan Podkurkov <podkiva2@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 GATTSERVICEREMOTETEST_H 0008 #define GATTSERVICEREMOTETEST_H 0009 0010 #include <QList> 0011 #include <QObject> 0012 0013 #include "bluezgattservice1_tst.h" 0014 #include "dbusproperties_tst.h" 0015 0016 #include "gattserviceremote.h" 0017 #include "manager.h" 0018 0019 class GattServiceRemoteTest : public QObject 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 explicit GattServiceRemoteTest(); 0025 0026 private Q_SLOTS: 0027 void initTestCase(); 0028 void cleanupTestCase(); 0029 0030 void getPropertiesTest(); 0031 void setHandleTest(); 0032 0033 void serviceRemovedTest(); 0034 0035 private: 0036 struct GattServiceRemoteUnit { 0037 BluezQt::GattServiceRemotePtr service; 0038 org::bluez::GattService1 *dbusService; 0039 org::freedesktop::DBus::Properties *dbusProperties; 0040 }; 0041 0042 BluezQt::Manager *m_manager; 0043 QList<GattServiceRemoteUnit> m_units; 0044 }; 0045 0046 #endif // GATTSERVICEREMOTETEST_H