5#ifndef DPROTOCOLDEVICEMONITOR_H
6#define DPROTOCOLDEVICEMONITOR_H
8#include <DtkMountGlobal>
14class DProtocolDeviceMonitor;
15namespace DDeviceManager {
19class DProtocolDeviceMonitorPrivate;
36 void mountAdded(
const QString &devUrl,
const QString &mountPoint);
42 QScopedPointer<DProtocolDeviceMonitorPrivate> d_ptr;
提供对协议类设备的监听操作
Definition dprotocoldevicemonitor.h:21
bool watchChanges() const
获取当前监视器工作状态
void setWatchChanges(bool watchChanges)
开启或关闭设备监听
void mountRemoved(const QString &devUrl)
信号,告知设备卸载
void deviceAdded(const QString &devUrl)
信号,告知协议设备添加
QStringList devices() const
获取当前所有协议设备列表
void deviceRemoved(const QString &devUrl)
信号,告知协议设备移除
void mountAdded(const QString &devUrl, const QString &mountPoint)
信号,告知设备挂载
~DProtocolDeviceMonitor() override
析构函数
DProtocolDeviceMonitor * globalProtocolDeviceMonitor()
获取全局唯一协议设备监视器,你可以使用该监视器监听协议设备的变化