DtkCore
DTK Core module
Dtk::Core::DFileWatcherManager类 参考

The DFileWatcherManager class can help you manage file watchers and get signal when file got changed. 更多...

类 Dtk::Core::DFileWatcherManager 继承关系图:
Dtk::Core::DObject

信号

void fileDeleted (const QString &filePath)
 
void fileAttributeChanged (const QString &filePath)
 
void fileMoved (const QString &fromFilePath, const QString &toFilePath)
 
void subfileCreated (const QString &filePath)
 
void fileModified (const QString &filePath)
 
void fileClosed (const QString &filePath)
 

Public 成员函数

 DFileWatcherManager (QObject *parent=0)
 
DFileWatcheradd (const QString &filePath)
 为路径 filePath 创建 DFileWatcher 并将其添加到 DFileWatcherManager 中. 更多...
 
void remove (const QString &filePath)
 从当前 DFileWatcherManager 中移除监视 filePathDFileWatcher. 更多...
 

额外继承的成员函数

- Protected 成员函数 继承自 Dtk::Core::DObject
 DObject (DObject *parent=nullptr)
 只有在不需要数据成员的派生类中才会使用 parent 父类指针
 
 DObject (DObjectPrivate &dd, DObject *parent=nullptr)
 在派生类中比较常用的构造函数 dd 私有类对象
 
- Protected 属性 继承自 Dtk::Core::DObject
QScopedPointer< DObjectPrivated_d_ptr
 

详细描述

The DFileWatcherManager class can help you manage file watchers and get signal when file got changed.

\inmodule dtkcore

DFileWatcherManager 类可以帮助管理一系列 DFileWatcher 文件监视器,并在文件变动时发送信号通知.

成员函数说明

◆ add()

DFileWatcher * Dtk::Core::DFileWatcherManager::add ( const QString &  filePath)

为路径 filePath 创建 DFileWatcher 并将其添加到 DFileWatcherManager 中.

Add file watcher for filePath to the file watcher manager.

返回
被创建并添加到 DFileWatcherManagerDFileWatcher
The file watcher which got created and added into the file watcher manager.

◆ remove()

void Dtk::Core::DFileWatcherManager::remove ( const QString &  filePath)

从当前 DFileWatcherManager 中移除监视 filePathDFileWatcher.

Remove file watcher for filePath from the file watcher manager.


该类的文档由以下文件生成: