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 <systemstats/SensorObject.h> 0010 0011 class NetworkDevice; 0012 0013 namespace KSysGuard 0014 { 0015 class AggregateSensor; 0016 } 0017 0018 /** 0019 * This object aggregates the network usage of all devices. 0020 */ 0021 class AllDevicesObject : public KSysGuard::SensorObject 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 AllDevicesObject(KSysGuard::SensorContainer* parent); 0027 0028 private: 0029 KSysGuard::AggregateSensor *m_downloadSensor = nullptr; 0030 KSysGuard::AggregateSensor *m_uploadSensor = nullptr; 0031 KSysGuard::AggregateSensor *m_downloadBitsSensor = nullptr; 0032 KSysGuard::AggregateSensor *m_uploadBitsSensor = nullptr; 0033 KSysGuard::AggregateSensor *m_totalDownloadSensor = nullptr; 0034 KSysGuard::AggregateSensor *m_totalUploadSensor = nullptr; 0035 };