1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
/*
* SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#pragma once
#include <systemstats/SensorObject.h>
class NetworkDevice;
namespace KSysGuard
{
class AggregateSensor;
}
/**
* This object aggregates the network usage of all devices.
*/
class AllDevicesObject : public KSysGuard::SensorObject
{
Q_OBJECT
public:
AllDevicesObject(KSysGuard::SensorContainer* parent);
private:
KSysGuard::AggregateSensor *m_downloadSensor = nullptr;
KSysGuard::AggregateSensor *m_uploadSensor = nullptr;
KSysGuard::AggregateSensor *m_downloadBitsSensor = nullptr;
KSysGuard::AggregateSensor *m_uploadBitsSensor = nullptr;
KSysGuard::AggregateSensor *m_totalDownloadSensor = nullptr;
KSysGuard::AggregateSensor *m_totalUploadSensor = nullptr;
};
|