dbasefilewatcher_zh
2022-04-18 16:17:32

Class::DBaseFileWatcher

暂无该属性


Detailed Description

~chinese ~chinese

DBaseFileWatcher 类提供了一系列接口可供监视文件和目录的变动。

DBaseFileWatcher::metaObject

[public plain  virtual]

const QMetaObject * metaObject() const

DBaseFileWatcher::qt_metacast

[public plain  virtual]

void * qt_metacast(const char *)

DBaseFileWatcher::qt_metacall

[public plain  virtual]

int qt_metacall(QMetaObject::Call , int , void **)

DBaseFileWatcher::tr

[public plain static ]

QString tr(const char *s, const char *c, int n)

DBaseFileWatcher::trUtf8

[public plain static ]

QString trUtf8(const char *s, const char *c, int n)

DBaseFileWatcher::qt_static_metacall

[private plain static ]

void qt_static_metacall(QObject *, QMetaObject::Call , int , void **)

Class::QPrivateSignal

DBaseFileWatcher::QPrivateSignal


Detailed Description

DBaseFileWatcher::~DBaseFileWatcher

[public destructor  virtual]

~DBaseFileWatcher()

DBaseFileWatcher::fileUrl

[public plain  ]

QUrl fileUrl() const

DBaseFileWatcher::startWatcher

[public plain  ]

bool startWatcher() ~chinese

开始文件变动监视 ~english

Let file watcher start watching file changes. See also stopWatcher() restartWatcher()

DBaseFileWatcher::stopWatcher

[public plain  ]

bool stopWatcher() ~chinese

停止文件变动监视 ~english

Stop watching file changes. See also startWatcher() restartWatcher()

DBaseFileWatcher::restartWatcher

[public plain  ]

bool restartWatcher() ~chinese

重新开始文件变动监视 ~english

Stop file watcher and then restart it to watching file changes. See also startWatcher() stopWatcher()

DBaseFileWatcher::setEnabledSubfileWatcher

[public plain  virtual]

void setEnabledSubfileWatcher(const QUrl &subfileUrl, bool enabled) ~chinese

设置是否对 subfileUrl 目录启用文件监视 ~english

Set enable file watcher for subfileUrl or not ~chinese subfileUrl 设置所针对的 Url ~english subfileUrl The given url

~chinese enabled 是否启用文件变动监视 ~english enabled Enable file change watching or not.

typedef DBaseFileWatcher::SignalType1

typedef DBaseFileWatcher::SignalType2

DBaseFileWatcher::ghostSignal

[public plain static ]

bool ghostSignal(const QUrl &targetUrl, DBaseFileWatcher::SignalType1 signal, const QUrl &arg1) ~chinese

发送一个信号表示目标目录 targetUrl 得到了一个 signal 信号,包含参数 arg1 。 ~english

Emit a signal about targetUrl got a signal with arg1 ~chinese 示例用法: ~english Example usage:

~

{.cpp}
   DBaseFileWatcher::ghostSignal(QUrl("bookmark:///"), &DBaseFileWatcher::fileDeleted, QUrl("bookmark:///bookmarkFile1"));

DBaseFileWatcher::ghostSignal

[public plain static ]

bool ghostSignal(const QUrl &targetUrl, DBaseFileWatcher::SignalType2 signal, const QUrl &arg1, const QUrl &arg2) ~chinese

发送一个信号表示目标目录 targetUrl 得到了一个 signal 信号,包含参数 arg1 和 UnknownCommand。 ~english

Emit a signal about targetUrl got a signal with arg1 and arg2 ~chinese 示例用法: ~english Example usage:

~

{.cpp}
   DBaseFileWatcher::ghostSignal(QUrl("bookmark:///"), &DBaseFileWatcher::fileMoved, QUrl("bookmark:///bookmarkFile1"), QUrl("bookmark:///NewNameFile1"));

DBaseFileWatcher::fileDeleted

[public signal  ]

void fileDeleted(const QUrl &url)

DBaseFileWatcher::fileAttributeChanged

[public signal  ]

void fileAttributeChanged(const QUrl &url)

DBaseFileWatcher::fileMoved

[public signal  ]

void fileMoved(const QUrl &fromUrl, const QUrl &toUrl)

DBaseFileWatcher::subfileCreated

[public signal  ]

void subfileCreated(const QUrl &url)

DBaseFileWatcher::fileModified

[public signal  ]

void fileModified(const QUrl &url)

DBaseFileWatcher::fileClosed

[public signal  ]

void fileClosed(const QUrl &url)

DBaseFileWatcher::DBaseFileWatcher

[protected constructor  ]

DBaseFileWatcher(DBaseFileWatcherPrivate &dd, const QUrl &url, QObject *parent)

DBaseFileWatcher::DBaseFileWatcher

[private constructor  ]

DBaseFileWatcher(const DBaseFileWatcher &)

DBaseFileWatcher::operator=

[private copy-assign  ]

DBaseFileWatcher & operator=(const DBaseFileWatcher &)

DBaseFileWatcher::d_func

[private plain  ]

DBaseFileWatcherPrivate * d_func()

DBaseFileWatcher::d_func

[private plain  ]

const DBaseFileWatcherPrivate * d_func() const