NetworkManager::DeviceStatistics Class
Represents device statistics interface. More...
- Header:
#include <NetworkManagerQt/DeviceStatistics> - CMake:
find_package(KF6 REQUIRED COMPONENTS NetworkManagerQt)
target_link_libraries(mytarget PRIVATE KF6::NetworkManagerQt) - Inherits: QObject
List of all members, including inherited members
Public Types
Properties
Public Functions
- DeviceStatistics(const QString &path, QObject *parent = nullptr)
- uint refreshRateMs() const
- qulonglong rxBytes() const
- void setRefreshRateMs(uint refreshRate)
- qulonglong txBytes() const
Signals
- void refreshRateMsChanged(uint refreshRate)
- void rxBytesChanged(qulonglong rxBytes)
- void txBytesChanged(qulonglong txBytes)
Detailed Description
Member Type Documentation
DeviceStatistics::List
DeviceStatistics::Ptr
Property Documentation
refreshRateMs : uint
Access functions:
uintrefreshRateMs() constvoidsetRefreshRateMs(uintrefreshRate)
Notifier signal:
voidrefreshRateMsChanged(uintrefreshRate)
[read-only] rxBytes : qulonglong
Access functions:
qulonglongrxBytes() const
Notifier signal:
voidrxBytesChanged(qulonglongrxBytes)
[read-only] txBytes : qulonglong
Access functions:
qulonglongtxBytes() const
Notifier signal:
voidtxBytesChanged(qulonglongtxBytes)
Member Function Documentation
[explicit] DeviceStatistics::DeviceStatistics(const QString &path, QObject *parent = nullptr)
uint DeviceStatistics::refreshRateMs() const
Refresh rate of the rest of properties of this interface. The properties are guaranteed to be refreshed each RefreshRateMs milliseconds in case the underlying counter has changed too. If zero, there is no guaranteed refresh rate of the properties.
Note: Getter function for property refreshRateMs.
See also setRefreshRateMs()
[signal] void DeviceStatistics::refreshRateMsChanged(uint refreshRate)
Emitted when the refresh rate has changed
Note: Notifier signal for property refreshRateMs.
qulonglong DeviceStatistics::rxBytes() const
Number of received bytes
Note: Getter function for property rxBytes.
[signal] void DeviceStatistics::rxBytesChanged(qulonglong rxBytes)
Emitted when the received bytes has changed
Note: Notifier signal for property rxBytes.
void DeviceStatistics::setRefreshRateMs(uint refreshRate)
Note: Setter function for property refreshRateMs.
See also refreshRateMs()
qulonglong DeviceStatistics::txBytes() const
Number of transmitted bytes
Note: Getter function for property txBytes.
[signal] void DeviceStatistics::txBytesChanged(qulonglong txBytes)
Emitted when the transmitted bytes has changed
Note: Notifier signal for property txBytes.