KySdkRunInfo(3) Library Functions Manual KySdkRunInfo(3)

KySdkRunInfo - 生成瞬时信息dbus信号类 主要用来生成瞬时网速,cpu温度、磁盘温度、磁盘转速dbus信号

#include <kysdkdbus.h>

Inherits QObject.

Public Slots


double getNetSpeed (const QString nc) const
获取瞬时网速信息 int getDiskRate (const QString diskpath) const
获取磁盘转速 double getCpuTemperature () const
获取CPU温度 double getDiskTemperature (const QString diskpath) const
获取磁盘温度

生成瞬时信息dbus信号类 主要用来生成瞬时网速,cpu温度、磁盘温度、磁盘转速dbus信号

Public Slots

获取CPU温度

Returns

double CPU温度

获取磁盘转速

Parameters

diskpath 磁盘名称,应当是例如/dev/sda这种绝对路径

Returns

int 磁盘转速

获取磁盘温度

Parameters

diskpath 磁盘名称,应当是例如/dev/sda这种绝对路径

Returns

double 磁盘温度

获取瞬时网速信息

Parameters

nc 网卡名称,如eno1

Returns

double 瞬时网速

Generated automatically by Doxygen for kysdkdbus.h from the source code.

Wed Sep 20 2023 My Project