File indexing completed on 2024-04-28 15:17:50

0001 /*
0002  * BluezQt - Asynchronous Bluez wrapper library
0003  *
0004  * SPDX-FileCopyrightText: 2019 Kai Uwe Broulik <kde@broulik.de>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007  */
0008 
0009 #ifndef BLUEZQT_BATTERY_P_H
0010 #define BLUEZQT_BATTERY_P_H
0011 
0012 #include <QObject>
0013 
0014 #include "battery.h"
0015 
0016 namespace BluezQt
0017 {
0018 class BatteryPrivate : public QObject
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit BatteryPrivate(const QString &path, const QVariantMap &properties);
0024 
0025     void propertiesChanged(const QString &interface, const QVariantMap &changed, const QStringList &invalidated);
0026 
0027     QWeakPointer<Battery> q;
0028 
0029     QString m_path;
0030     int m_percentage = 0;
0031 };
0032 
0033 } // namespace BluezQt
0034 
0035 #endif // BLUEZQT_BATTERY_P_H