File indexing completed on 2024-05-12 17:00:16
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl> 0003 * SPDX-FileCopyrightText: 2021 Alessio Bonfiglio <alessio.bonfiglio@mail.polimi.it> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 */ 0007 0008 #pragma once 0009 0010 #include "systemstats/SensorObject.h" 0011 0012 class NetworkDevice : public KSysGuard::SensorObject 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 NetworkDevice(const QString& id, const QString& name); 0018 ~NetworkDevice() override = default; 0019 0020 protected: 0021 KSysGuard::SensorProperty *m_networkSensor = nullptr; 0022 KSysGuard::SensorProperty *m_signalSensor = nullptr; 0023 KSysGuard::SensorProperty *m_ipv4Sensor = nullptr; 0024 KSysGuard::SensorProperty *m_ipv4GatewaySensor = nullptr; 0025 KSysGuard::SensorProperty *m_ipv4SubnetMaskSensor = nullptr; 0026 KSysGuard::SensorProperty *m_ipv4WithPrefixLengthSensor = nullptr; 0027 KSysGuard::SensorProperty *m_ipv4DNSSensor = nullptr; 0028 KSysGuard::SensorProperty *m_ipv6Sensor = nullptr; 0029 KSysGuard::SensorProperty *m_ipv6GatewaySensor = nullptr; 0030 KSysGuard::SensorProperty *m_ipv6SubnetMaskSensor = nullptr; 0031 KSysGuard::SensorProperty *m_ipv6WithPrefixLengthSensor = nullptr; 0032 KSysGuard::SensorProperty *m_ipv6DNSSensor = nullptr; 0033 KSysGuard::SensorProperty *m_downloadSensor = nullptr; 0034 KSysGuard::SensorProperty *m_uploadSensor = nullptr; 0035 KSysGuard::SensorProperty *m_downloadBitsSensor = nullptr; 0036 KSysGuard::SensorProperty *m_uploadBitsSensor = nullptr; 0037 KSysGuard::SensorProperty *m_totalDownloadSensor = nullptr; 0038 KSysGuard::SensorProperty *m_totalUploadSensor = nullptr; 0039 };