Warning, file /plasma/libksysguard/systemstats/SensorPlugin.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2019 David Edmundson <davidedmundson@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "SensorPlugin.h" 0008 0009 using namespace KSysGuard; 0010 0011 class Q_DECL_HIDDEN SensorPlugin::Private 0012 { 0013 public: 0014 QList<SensorContainer *> containers; 0015 }; 0016 0017 SensorPlugin::SensorPlugin(QObject *parent, const QVariantList &args) 0018 : QObject(parent) 0019 , d(std::make_unique<Private>()) 0020 { 0021 Q_UNUSED(args) 0022 } 0023 0024 SensorPlugin::~SensorPlugin() = default; 0025 0026 QList<SensorContainer *> SensorPlugin::containers() const 0027 { 0028 return d->containers; 0029 } 0030 0031 QString SensorPlugin::providerName() const 0032 { 0033 return QString(); 0034 } 0035 0036 void SensorPlugin::update() 0037 { 0038 } 0039 0040 void SensorPlugin::addContainer(SensorContainer *container) 0041 { 0042 d->containers << container; 0043 }