NetworkManager::DeviceStatistics Class
class NetworkManager::DeviceStatisticsRepresents device statistics interface. More...
Header: | #include <NetworkManagerQt/DeviceStatistics> |
CMake: | find_package(KF6 REQUIRED COMPONENTS NetworkManagerQt) target_link_libraries(mytarget PRIVATE KF6::NetworkManagerQt) |
Inherits: | QObject |
Public Types
Properties
- refreshRateMs : uint
- rxBytes : const qulonglong
- txBytes : const qulonglong
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:
uint | refreshRateMs() const |
void | setRefreshRateMs(uint refreshRate) |
Notifier signal:
void | refreshRateMsChanged(uint refreshRate) |
[read-only]
rxBytes : const qulonglong
Access functions:
qulonglong | rxBytes() const |
Notifier signal:
void | rxBytesChanged(qulonglong rxBytes) |
[read-only]
txBytes : const qulonglong
Access functions:
qulonglong | txBytes() const |
Notifier signal:
void | txBytesChanged(qulonglong txBytes) |
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.