DtkCore
DTK Core module
|
The DFileWatcher class provides an implemention of DBaseFileWatcher for monitoring files and directories for modifications. 更多...
Public 成员函数 | |
DFileWatcher (const QString &filePath, QObject *parent=0) | |
![]() | |
QUrl | fileUrl () const |
bool | startWatcher () |
开始文件变动监视 更多... | |
bool | stopWatcher () |
停止文件变动监视. 更多... | |
bool | restartWatcher () |
重新开始文件变动监视. 更多... | |
virtual void | setEnabledSubfileWatcher (const QUrl &subfileUrl, bool enabled=true) |
设置是否对 subfileUrl 目录启用文件监视 更多... | |
额外继承的成员函数 | |
![]() | |
using | SignalType1 = void(DBaseFileWatcher::*)(const QUrl &) |
using | SignalType2 = void(DBaseFileWatcher::*)(const QUrl &, const QUrl &) |
![]() | |
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) |
![]() | |
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。 更多... | |
![]() | |
DBaseFileWatcher (DBaseFileWatcherPrivate &dd, const QUrl &url, QObject *parent=0) | |
![]() | |
DObject (DObject *parent=nullptr) | |
只有在不需要数据成员的派生类中才会使用 parent 父类指针 | |
DObject (DObjectPrivate &dd, DObject *parent=nullptr) | |
在派生类中比较常用的构造函数 dd 私有类对象 | |
![]() | |
QScopedPointer< DObjectPrivate > | d_d_ptr |
The DFileWatcher class provides an implemention of DBaseFileWatcher for monitoring files and directories for modifications.
\inmodule dtkcore
DFileWatcher 类提供了对 DBaseFileWatcher 接口的实现,可供监视文件和目录的变动。