File indexing completed on 2024-05-12 17:00:16
0001 /* 0002 SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <systemstats/SensorPlugin.h> 0010 0011 class OSInfoPrivate; 0012 0013 class OSInfoPlugin : public KSysGuard::SensorPlugin 0014 { 0015 Q_OBJECT 0016 public: 0017 OSInfoPlugin(QObject *parent, const QVariantList &args); 0018 ~OSInfoPlugin() override; 0019 0020 QString providerName() const override 0021 { 0022 return QStringLiteral("osinfo"); 0023 } 0024 0025 void update() override; 0026 0027 private: 0028 std::unique_ptr<OSInfoPrivate> d; 0029 };