18#ifndef DFILESYSTEMWATCHER_P_H
19#define DFILESYSTEMWATCHER_P_H
21#include "base/private/dobject_p.h"
23#include <QSocketNotifier>
29class DFileSystemWatcher;
30class DFileSystemWatcherPrivate :
public DObjectPrivate
32 Q_DECLARE_PUBLIC(DFileSystemWatcher)
35 DFileSystemWatcherPrivate(
int fd, DFileSystemWatcher *qq);
36 ~DFileSystemWatcherPrivate();
38 QStringList addPaths(
const QStringList &paths, QStringList *files, QStringList *directories);
39 QStringList removePaths(
const QStringList &paths, QStringList *files, QStringList *directories);
41 QStringList files, directories;
43 QHash<QString, int> pathToID;
44 QMultiHash<int, QString> idToPath;
45 QSocketNotifier notifier;
48 void _q_readFromInotify();
51 void onFileChanged(
const QString &path,
bool removed);
52 void onDirectoryChanged(
const QString &path,
bool removed);