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

The DFileWatcher class provides an implemention of DBaseFileWatcher for monitoring files and directories for modifications. 更多...

类 Dtk::Core::DFileWatcher 继承关系图:
Dtk::Core::DBaseFileWatcher Dtk::Core::DObject

Public 成员函数

 DFileWatcher (const QString &filePath, QObject *parent=0)
 
- Public 成员函数 继承自 Dtk::Core::DBaseFileWatcher
QUrl fileUrl () const
 
bool startWatcher ()
 开始文件变动监视 更多...
 
bool stopWatcher ()
 停止文件变动监视. 更多...
 
bool restartWatcher ()
 重新开始文件变动监视. 更多...
 
virtual void setEnabledSubfileWatcher (const QUrl &subfileUrl, bool enabled=true)
 设置是否对 subfileUrl 目录启用文件监视 更多...
 

额外继承的成员函数

- Public 类型 继承自 Dtk::Core::DBaseFileWatcher
using SignalType1 = void(DBaseFileWatcher::*)(const QUrl &)
 
using SignalType2 = void(DBaseFileWatcher::*)(const QUrl &, const QUrl &)
 
- 信号 继承自 Dtk::Core::DBaseFileWatcher
void fileDeleted (const QUrl &url)
 
void fileAttributeChanged (const QUrl &url)
 
void fileMoved (const QUrl &fromUrl, const QUrl &toUrl)
 
void subfileCreated (const QUrl &url)
 
void fileModified (const QUrl &url)
 
void fileClosed (const QUrl &url)
 
- 静态 Public 成员函数 继承自 Dtk::Core::DBaseFileWatcher
static bool ghostSignal (const QUrl &targetUrl, SignalType1 signal, const QUrl &arg1)
 发送一个信号表示目标目录 targetUrl 得到了一个 signal 信号,包含参数 arg1更多...
 
static bool ghostSignal (const QUrl &targetUrl, SignalType2 signal, const QUrl &arg1, const QUrl &arg2)
 发送一个信号表示目标目录 targetUrl 得到了一个 signal 信号,包含参数 arg1 和 arg2。 更多...
 
- Protected 成员函数 继承自 Dtk::Core::DBaseFileWatcher
 DBaseFileWatcher (DBaseFileWatcherPrivate &dd, const QUrl &url, QObject *parent=0)
 
- 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 DFileWatcher class provides an implemention of DBaseFileWatcher for monitoring files and directories for modifications.

\inmodule dtkcore

DFileWatcher 类提供了对 DBaseFileWatcher 接口的实现,可供监视文件和目录的变动。


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