Debian Codegraph @

autotests/batterytest.h

raw
1 /*
2 * SPDX-FileCopyrightText: 2019 Kai Uwe Broulik <[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 BATTERYTEST_H
8 #define BATTERYTEST_H
9
10 #include <QObject>
11
12 #include "bluezbattery1_tst.h"
13
14 #include "battery.h"
15 #include "device.h"
16 #include "manager.h"
17
18 class BatteryTest : public QObject
19 {
20 Q_OBJECT
21
22 public:
23 explicit BatteryTest();
24
25 private Q_SLOTS:
26 void initTestCase();
27 void cleanupTestCase();
28
29 void getPropertiesTest();
30
31 private:
32 struct BatteryUnit {
33 BluezQt::DevicePtr device;
34 org::bluez::Battery1 *dbusBattery;
35 };
36
37 BluezQt::Manager *m_manager;
38 QList<BatteryUnit> m_units;
39 };
40
41 #endif // BATTERYTEST_H