DtkCore
DTK Core module
|
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) | |
DObject (DObjectPrivate &dd, DObject *parent=nullptr) | |
![]() | |
QScopedPointer< DObjectPrivate > | d_d_ptr |