提供块设备的监听操作
更多...
#include <dblockdevicemonitor.h>
|
void | deviceAdded (const QString &devPath) |
| 信号,告知块设备添加
|
|
void | deviceRemoved (const QString &devPath) |
| 信号,告知块设备移除
|
|
void | mountAdded (const QString &devPath, const QString &mountPoint) |
| 信号,告知块设备挂载
|
|
void | mountRemoved (const QString &devPath) |
| 信号,告知块设备卸载
|
|
void | fileSystemAdded (const QString &devPath) |
| 信号,告知块设备文件系统识别
|
|
void | fileSystemRemoved (const QString &devPath) |
| 信号,告知块设备文件系统移除
|
|
void | driveAdded (const QString &drvPath) |
| 信号,告知驱动(硬盘)设备添加
|
|
void | driveRemoved (const QString &drvPath) |
| 信号,告知驱动设备移除
|
|
void | propertiesChanged (const QString &devPath, const QMap< Dtk::Mount::BlockDeviceProperty, QVariant > &changes) |
| 信号,告知块设备/驱动设备属性变化
|
|
◆ deviceAdded
void DBlockDeviceMonitor::deviceAdded |
( |
const QString & |
devPath | ) |
|
|
signal |
信号,告知块设备添加
- 参数
-
[out] | devPath | 添加的块设备路径,形如 /org/freedesktop/UDisks2/block_devices/sda1 格式 |
◆ deviceRemoved
void DBlockDeviceMonitor::deviceRemoved |
( |
const QString & |
devPath | ) |
|
|
signal |
◆ driveAdded
void DBlockDeviceMonitor::driveAdded |
( |
const QString & |
drvPath | ) |
|
|
signal |
信号,告知驱动(硬盘)设备添加
- 参数
-
[out] | drvPath | 驱动设备路径,形如 /org/freedesktop/UDisks2/drives/ASUS_BW_16D1H_U_1234567 |
◆ driveRemoved
void DBlockDeviceMonitor::driveRemoved |
( |
const QString & |
drvPath | ) |
|
|
signal |
◆ fileSystemAdded
void DBlockDeviceMonitor::fileSystemAdded |
( |
const QString & |
devPath | ) |
|
|
signal |
信号,告知块设备文件系统识别
- 参数
-
- 注解
- 该信号通常在格式化设备完成后发出
◆ fileSystemRemoved
void DBlockDeviceMonitor::fileSystemRemoved |
( |
const QString & |
devPath | ) |
|
|
signal |
◆ mountAdded
void DBlockDeviceMonitor::mountAdded |
( |
const QString & |
devPath, |
|
|
const QString & |
mountPoint |
|
) |
| |
|
signal |
信号,告知块设备挂载
- 参数
-
[out] | devPath | 挂载的块设备路径 |
[out] | mountPoint | 块设备的挂载点 |
◆ mountRemoved
void DBlockDeviceMonitor::mountRemoved |
( |
const QString & |
devPath | ) |
|
|
signal |
◆ propertiesChanged
void DBlockDeviceMonitor::propertiesChanged |
( |
const QString & |
devPath, |
|
|
const QMap< Dtk::Mount::BlockDeviceProperty, QVariant > & |
changes |
|
) |
| |
|
signal |
信号,告知块设备/驱动设备属性变化
- 参数
-
[out] | devPath | 块设备/驱动设备路径 |
[out] | changes | 变化的属性列表 |
- 参见
- Dtk::Mount::BlockDeviceProperty
◆ setWatchChanges()
void DBlockDeviceMonitor::setWatchChanges |
( |
bool |
watchChanges | ) |
|
◆ watchChanges()
bool DBlockDeviceMonitor::watchChanges |
( |
| ) |
const |
该类的文档由以下文件生成: