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

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 CPUPLUGIN_H
0008 #define CPUPLUGIN_H
0009 
0010 #include <systemstats/SensorPlugin.h>
0011 
0012 class CpuPluginPrivate;
0013 
0014 class CpuPlugin : public KSysGuard::SensorPlugin
0015 {
0016     Q_OBJECT
0017 public:
0018     CpuPlugin(QObject *parent, const QVariantList &args);
0019     ~CpuPlugin() override;
0020 
0021     QString providerName() const override
0022     {
0023         return QStringLiteral("cpu");
0024     }
0025     void update() override;
0026 
0027 private: 
0028    std::unique_ptr<CpuPluginPrivate> d;
0029 };
0030 
0031 #endif