5#ifndef DFILEWATCHERMANAGER_H
6#define DFILEWATCHERMANAGER_H
8#include "dtkcore_global.h"
18class DFileWatcherManagerPrivate;
28 void remove(
const QString &filePath);
34 void fileMoved(
const QString &fromFilePath,
const QString &toFilePath);
40 QScopedPointer<DFileWatcherManagerPrivate> d_ptr;
DFileWatcher 类提供了对 DBaseFileWatcher 接口的实现,可供监视文件和目录的变动
Definition dfilewatchermanager.h:20
QStringList watchedFiles() const
获取 DFileWatcherManager 中所有的 DFileWatcher.
DFileWatcher * add(const QString &filePath)
为路径filePath创建 DFileWatcher 并将其添加到 DFileWatcherManager 中.
void remove(const QString &filePath)
从 DFileWatcherManager 中移除路径filePath对应的 DFileWatcher.
void fileMoved(const QString &fromFilePath, const QString &toFilePath)
当路径fromFilePath对应的文件被移动到路径toFilePath时发送此信号.
void fileAttributeChanged(const QString &filePath)
当路径filePath对应的文件属性发生变化时发送此信号.
void fileDeleted(const QString &filePath)
当路径filePath对应的文件被删除时发送此信号.
void removeAll()
从 DFileWatcherManager 中移除所有的 DFileWatcher.
void fileModified(const QString &filePath)
当路径filePath对应的文件被修改时发送此信号.
void fileClosed(const QString &filePath)
当路径filePath对应的文件被关闭时发送此信号.
void subfileCreated(const QString &filePath)
当路径filePath对应的文件夹中有新的子文件被创建时发送此信号.
Definition dfilewatcher.h:14