File: NetworkDevice.h

package info (click to toggle)
ksystemstats 6.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,528 kB
  • sloc: cpp: 4,881; makefile: 6; sh: 1
file content (39 lines) | stat: -rw-r--r-- 1,601 bytes parent folder | download | duplicates (3)
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
36
37
38
39
/*
 * SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl>
 * SPDX-FileCopyrightText: 2021 Alessio Bonfiglio <alessio.bonfiglio@mail.polimi.it>
 * 
 * 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 : public KSysGuard::SensorObject
{
    Q_OBJECT

public:
    NetworkDevice(const QString& id, const QString& name);
    ~NetworkDevice() override = default;

protected:
    KSysGuard::SensorProperty *m_networkSensor = nullptr;
    KSysGuard::SensorProperty *m_signalSensor = nullptr;
    KSysGuard::SensorProperty *m_ipv4Sensor = nullptr;
    KSysGuard::SensorProperty *m_ipv4GatewaySensor = nullptr;
    KSysGuard::SensorProperty *m_ipv4SubnetMaskSensor = nullptr;
    KSysGuard::SensorProperty *m_ipv4WithPrefixLengthSensor = nullptr;
    KSysGuard::SensorProperty *m_ipv4DNSSensor = nullptr;
    KSysGuard::SensorProperty *m_ipv6Sensor = nullptr;
    KSysGuard::SensorProperty *m_ipv6GatewaySensor = nullptr;
    KSysGuard::SensorProperty *m_ipv6SubnetMaskSensor = nullptr;
    KSysGuard::SensorProperty *m_ipv6WithPrefixLengthSensor = nullptr;
    KSysGuard::SensorProperty *m_ipv6DNSSensor = nullptr;
    KSysGuard::SensorProperty *m_downloadSensor = nullptr;
    KSysGuard::SensorProperty *m_uploadSensor = nullptr;
    KSysGuard::SensorProperty *m_downloadBitsSensor = nullptr;
    KSysGuard::SensorProperty *m_uploadBitsSensor = nullptr;
    KSysGuard::SensorProperty *m_totalDownloadSensor = nullptr;
    KSysGuard::SensorProperty *m_totalUploadSensor = nullptr;
};