1 | /* |
2 | * SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com> |
3 | * |
4 | * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
5 | */ |
6 | |
7 | #ifndef INPUTTEST_H |
8 | #define INPUTTEST_H |
9 | |
10 | #include <QObject> |
11 | |
12 | #include "bluezinput1_tst.h" |
13 | |
14 | #include "device.h" |
15 | #include "input.h" |
16 | #include "manager.h" |
17 | |
18 | class InputTest : public QObject |
19 | { |
20 | Q_OBJECT |
21 | |
22 | public: |
23 | explicit InputTest(); |
24 | |
25 | private Q_SLOTS: |
26 | void initTestCase(); |
27 | void cleanupTestCase(); |
28 | |
29 | void getPropertiesTest(); |
30 | |
31 | private: |
32 | QString reconnectModeString(const BluezQt::InputPtr &input) const; |
33 | |
34 | struct InputUnit { |
35 | BluezQt::DevicePtr device; |
36 | org::bluez::Input1 *dbusInput; |
37 | }; |
38 | |
39 | BluezQt::Manager *m_manager; |
40 | QList<InputUnit> m_units; |
41 | }; |
42 | |
43 | #endif // INPUTTEST_H |
44 | |