1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2019 Kai Uwe Broulik <kde@broulik.de>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef BLUEZQT_BATTERY_P_H
10#define BLUEZQT_BATTERY_P_H
11
12#include <QObject>
13
14#include "battery.h"
15
16namespace BluezQt
17{
18class BatteryPrivate : public QObject
19{
20 Q_OBJECT
21
22public:
23 explicit BatteryPrivate(const QString &path, const QVariantMap &properties);
24
25 void propertiesChanged(const QString &interface, const QVariantMap &changed, const QStringList &invalidated);
26
27 QWeakPointer<Battery> q;
28
29 QString m_path;
30 int m_percentage = 0;
31};
32
33} // namespace BluezQt
34
35#endif // BLUEZQT_BATTERY_P_H
36

source code of bluez-qt/src/battery_p.h