DtkCore
DTK Core module
|
The DFileWatcherManager class can help you manage file watchers and get signal when file got changed. 更多...
Public 成员函数 | |
DFileWatcherManager (QObject *parent=0) | |
DFileWatcher * | add (const QString &filePath) |
为路径 filePath 创建 DFileWatcher 并将其添加到 DFileWatcherManager 中. 更多... | |
void | remove (const QString &filePath) |
从当前 DFileWatcherManager 中移除监视 filePath 的 DFileWatcher. 更多... | |
额外继承的成员函数 | |
![]() | |
DObject (DObject *parent=nullptr) | |
只有在不需要数据成员的派生类中才会使用 parent 父类指针 | |
DObject (DObjectPrivate &dd, DObject *parent=nullptr) | |
在派生类中比较常用的构造函数 dd 私有类对象 | |
![]() | |
QScopedPointer< DObjectPrivate > | d_d_ptr |
The DFileWatcherManager class can help you manage file watchers and get signal when file got changed.
\inmodule dtkcore
DFileWatcherManager 类可以帮助管理一系列 DFileWatcher 文件监视器,并在文件变动时发送信号通知.
DFileWatcher * Dtk::Core::DFileWatcherManager::add | ( | const QString & | filePath | ) |
为路径 filePath 创建 DFileWatcher 并将其添加到 DFileWatcherManager 中.
Add file watcher for filePath to the file watcher manager.
void Dtk::Core::DFileWatcherManager::remove | ( | const QString & | filePath | ) |
从当前 DFileWatcherManager 中移除监视 filePath 的 DFileWatcher.
Remove file watcher for filePath from the file watcher manager.