File indexing completed on 2024-05-12 17:00:17

0001 /*
0002     SPDX-FileCopyrightText: 2020 David Redondo <kde@david-redondo.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #ifndef POWER_H
0008 #define POWER_H
0009 
0010 #include <systemstats/SensorPlugin.h>
0011 
0012 namespace Solid {
0013 class Device;
0014 }
0015 namespace KSysGuard
0016 {
0017     class SensorContainer;
0018 }
0019 class Battery;
0020 
0021 class PowerPlugin : public KSysGuard::SensorPlugin {
0022     Q_OBJECT
0023 public:
0024     PowerPlugin(QObject *parent, const QVariantList &args);
0025     QString providerName() const override
0026     {
0027         return QStringLiteral("power");
0028     };
0029 private:
0030     KSysGuard::SensorContainer *m_container;
0031     QHash<QString, Battery*> m_batteriesByUdi;
0032 };
0033 
0034 #endif