提供对协议类设备的监听操作
更多...
#include <dprotocoldevicemonitor.h>
|
| void | deviceAdded (const QString &devUrl) |
| | 信号,告知协议设备添加
|
| |
| void | deviceRemoved (const QString &devUrl) |
| | 信号,告知协议设备移除
|
| |
| void | mountAdded (const QString &devUrl, const QString &mountPoint) |
| | 信号,告知设备挂载
|
| |
| void | mountRemoved (const QString &devUrl) |
| | 信号,告知设备卸载
|
| |
◆ deviceAdded
| void DProtocolDeviceMonitor::deviceAdded |
( |
const QString & |
devUrl | ) |
|
|
signal |
信号,告知协议设备添加
- 参数
-
- 注解
- 一般非纯协议设备的接入才会触发该信号,例如手机、数码相机接入,这类设备含有线连接的硬件
◆ deviceRemoved
| void DProtocolDeviceMonitor::deviceRemoved |
( |
const QString & |
devUrl | ) |
|
|
signal |
◆ devices()
| QStringList DProtocolDeviceMonitor::devices |
( |
| ) |
const |
获取当前所有协议设备列表
- 返回
- 设备列表,在监视器开启时有效
◆ mountAdded
| void DProtocolDeviceMonitor::mountAdded |
( |
const QString & |
devUrl, |
|
|
const QString & |
mountPoint |
|
) |
| |
|
signal |
信号,告知设备挂载
- 参数
-
| [out] | devUrl | 设备 url 标识 |
| [out] | mountPoint | 设备挂载点 |
◆ mountRemoved
| void DProtocolDeviceMonitor::mountRemoved |
( |
const QString & |
devUrl | ) |
|
|
signal |
◆ setWatchChanges()
| void DProtocolDeviceMonitor::setWatchChanges |
( |
bool |
watchChanges | ) |
|
◆ watchChanges()
| bool DProtocolDeviceMonitor::watchChanges |
( |
| ) |
const |
该类的文档由以下文件生成: