File indexing completed on 2024-05-12 17:00:15
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 <memory> 0010 0011 #include <systemstats/SensorPlugin.h> 0012 0013 class GpuPlugin : public KSysGuard::SensorPlugin 0014 { 0015 Q_OBJECT 0016 public: 0017 GpuPlugin(QObject *parent, const QVariantList &args); 0018 ~GpuPlugin(); 0019 0020 QString providerName() const override 0021 { 0022 return QStringLiteral("gpu"); 0023 } 0024 0025 void update() override; 0026 0027 private: 0028 class Private; 0029 std::unique_ptr<Private> d; 0030 };