7#include "dtkdevice_global.h"
12DDEVICE_BEGIN_NAMESPACE
14class DlsDevicePrivate;
15class LIBDTKDEVICESHARED_EXPORT
DlsDevice :
public QObject
20 DtkBridge, DtkController, DtkHub,
21 DtkBios, DtkBus, DtkAddress, DtkVolume,
30 DtkNetwork, Dtkwlan, DtkCommunication,
31 DtkDisplayGPU, DtkMonitor,
72 explicit DlsDevice(QObject *parent =
nullptr);
82 QMap<QString, int> CpuStat();
97 QScopedPointer<DlsDevicePrivate> d_ptr;
解析获取硬件信息.
Definition: dlsdevice.h:16
double updateSystemCpuUsage()
更新CPU信息
QList< DDeviceInfo > deviceMemory()
获取内存设备信息
int devicesCount(DevClass devclass)
获取的相关类别设备个数
QList< DDeviceInfo > deviceCamera()
获取相机设备信息
QList< DDeviceInfo > deviceMonitor()
获取显示器设备信息
QList< DDeviceInfo > deviceCPU()
获取CPU设备信息
QList< DDeviceInfo > deviceStorage()
获取存储设备信息
QList< DDeviceInfo > deviceGPU()
获取GPU设备信息
QList< DDeviceInfo > devicesInfosAll()
获取的所有设备信息
QList< DDeviceInfo > deviceAudio()
获取声音设备信息
QList< DDeviceInfo > deviceMouse()
获取鼠标设备信息
double getCpuUsage()
获取CPU利用率
QList< DDeviceInfo > deviceKeyboard()
获取键盘设备信息
QList< DDeviceInfo > deviceNetwork()
获取网络设备信息
int devicesCount()
获取的所有设备个数
QStringList deviceAttris(DevClass etype)
获取的相关类别设备属性名称
DevClass
设备类型分类
Definition: dlsdevice.h:18
QList< DDeviceInfo > deviceInfo(DevClass etype)
获取的相关类别设备信息
QList< DDeviceInfo > deviceComputer()
获取系统设备信息
QList< DDeviceInfo > deviceInfo(DevClass etype, const int idex)
获取的相关类别设备信息
存储设备相关信息
Definition: dlsdevice.h:56
QMap< QString, QString > deviceInfoLstMap
Definition: dlsdevice.h:57
QString productName
Definition: dlsdevice.h:59
QStringList deviceBaseAttrisLst
Definition: dlsdevice.h:67
QStringList deviceOtherAttrisLst
Definition: dlsdevice.h:68
QString subClassName
Definition: dlsdevice.h:65
QString vendorName
Definition: dlsdevice.h:58
QString vendorID
Definition: dlsdevice.h:61
QString productID
Definition: dlsdevice.h:62
QString sysFsPath
Definition: dlsdevice.h:63
QString modalias
Definition: dlsdevice.h:60
QString baseClassName
Definition: dlsdevice.h:64