KYSDK_FILEWATCHER::FileWatcher(3)

NAME
KYSDK_FILEWATCHER::FileWatcher - 文件管理类 主要用来增加需要监听的文件路径，增加需要监听的文件列表，从监听列表中移除指定的文件，清空监听列表，暂停文件监听，恢复文件监听

SYNOPSIS

#include <libkyfilewatcher.hpp>

  Public Member Functions
QStringList addWatchTargetRecursive (QString url, FileWatcherType type=PERIODIC, int attr=OPEN|CLOSE|MODIFY|DELETE, int maxdepth=5, int recurType=DIR|REGULAR)
增加需要监听的文件路径，对于目录，默认启用递归监听子目录
QStringList addWatchTargetListRecursive (QStringList urlList, FileWatcherType type=PERIODIC, int attr=OPEN|CLOSE|MODIFY|DELETE, int maxdepth=5, int recurType=DIR|REGULAR)
增加需要监听的文件列表
QStringList removeWatchTargetRecursive (QString url, int maxdepth=5, int recurType=ALLFILE)
从监听列表中移除指定的文件
void clearWatchList ()
清空监听列表
void pauseWatcher ()
暂停文件监听
void restartWatcher ()
恢复文件监听

Detailed Description

文件管理类 主要用来增加需要监听的文件路径，增加需要监听的文件列表，从监听列表中移除指定的文件，清空监听列表，暂停文件监听，恢复文件监听

CONFORMING TO
These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: addWatchTargetRecursive(), addWatchTargetListRecursive(), removeWatchTargetRecursive(), clearWatchList(), pauseWatcher() and restartWatcher().

SEE ALSO
addWatchTargetRecursive(3), addWatchTargetListRecursive(3), removeWatchTargetRecursive(3), clearWatchList(3), pauseWatcher(3) and restartWatcher(3).