1/*
2 * SPDX-FileCopyrightText: 2019 Kai Uwe Broulik <kde@broulik.de>
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
18class BatteryTest : public QObject
19{
20 Q_OBJECT
21
22public:
23 explicit BatteryTest();
24
25private Q_SLOTS:
26 void initTestCase();
27 void cleanupTestCase();
28
29 void getPropertiesTest();
30
31private:
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
42

source code of bluez-qt/autotests/batterytest.h