Baloo
8 #ifndef BALOO_FILE_WATCH_H_
9 #define BALOO_FILE_WATCH_H_
12 #include "pendingfile.h"
20 class FileIndexerConfig;
21 class PendingFileQueue;
24 class FileWatch :
public QObject
29 FileWatch(Database* db, FileIndexerConfig* config,
QObject* parent =
nullptr);
30 ~FileWatch()
override;
37 void updateIndexedFoldersWatches();
40 void indexNewFile(
const QString&
string);
41 void indexModifiedFile(
const QString&
string);
42 void indexXAttr(
const QString& path);
48 void fileRemoved(
const QString& path);
50 void installedWatches();
54 void slotFileDeleted(
const QString& urlString,
bool isDir);
55 void slotFileCreated(
const QString& path,
bool isDir);
56 void slotFileClosedAfterWrite(
const QString&);
57 void slotAttributeChanged(
const QString& path);
58 void slotFileModified(
const QString& path);
59 void slotInotifyWatchUserLimitReached(
const QString&);
63 void watchFolder(
const QString& path);
67 MetadataMover* m_metadataMover;
68 FileIndexerConfig* m_config;
73 PendingFileQueue* m_pendingFileQueue;
78 friend class FileWatchTest;
Implements storage for docIds without any associated data Instantiated for:
A simple wrapper around inotify which only allows to add folders recursively.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.