KDECore
kdirwatch.cpp
Go to the documentation of this file.
245 kDebug(7001) << "Available methods: " << availableMethods << "preferred=" << methodToString(m_preferredMethod);
525QList<KDirWatchPrivate::Client *> KDirWatchPrivate::Entry::clientsForFileOrDir(const QString& tpath, bool* isDir) const
547// inotify specific function that doesn't call KDE::stat to figure out if we have a file or folder.
548// isDir is determined through inotify's "IN_ISDIR" flag in KDirWatchPrivate::inotifyEventReceived
697 int mask = IN_DELETE|IN_DELETE_SELF|IN_CREATE|IN_MOVE|IN_MOVE_SELF|IN_DONT_FOLLOW|IN_MOVED_FROM|IN_MODIFY|IN_ATTRIB;
893 if (e->m_mode == INotifyMode || (e->m_mode == UnknownMode && m_preferredMethod == KDirWatch::INotify) )
1356 QMetaObject::invokeMethod(c->instance, "setDeleted", Qt::QueuedConnection, Q_ARG(QString, path));
1362 QMetaObject::invokeMethod(c->instance, "setCreated", Qt::QueuedConnection, Q_ARG(QString, path));
1622 //kDebug(7001) << "Got FAMDeleted for" << QFile::decodeName(fe->filename) << "in" << e->path << ". Absolute path -> NOOP!";
1695 kDebug(7001) << " " << d << d->path << (d->m_status == NonExistent ? "NonExistent" : "EXISTS!!! ERROR!");
1740 kWarning (7001) << "QFileSystemWatcher event received but QFileSystemWatcher is not supported";
Definition kdirwatch_p.h:137
void addClient(KDirWatch *, KDirWatch::WatchModes)
Definition kdirwatch.cpp:469
QList< Client * > clientsForFileOrDir(const QString &tpath, bool *isDir) const
Definition kdirwatch.cpp:525
QList< Client * > inotifyClientsForFileOrDir(bool isDir) const
Definition kdirwatch.cpp:549
Definition kdirwatch_p.h:117
void emitEvent(const Entry *e, int event, const QString &fileName=QString())
Definition kdirwatch.cpp:1315
bool restartEntryScan(KDirWatch *, Entry *, bool)
Definition kdirwatch.cpp:1122
KDirWatch::Method m_nfsPreferredMethod
Definition kdirwatch_p.h:233
void addEntry(KDirWatch *instance, const QString &_path, Entry *sub_entry, bool isDir, KDirWatch::WatchModes watchModes=KDirWatch::WatchDirOnly)
Definition kdirwatch.cpp:763
static bool isNoisyFile(const char *filename)
Definition kdirwatch.cpp:1502
bool removeEntry(KDirWatch *, const QString &, Entry *sub_entry)
Definition kdirwatch.cpp:995
void fswEventReceived(const QString &path)
Definition kdirwatch.cpp:1707
bool stopEntryScan(KDirWatch *, Entry *)
Definition kdirwatch.cpp:1096
void removeFile(const QString &file)
Removes a file from the list of watched files.
Definition kdirwatch.cpp:1828
bool contains(const QString &path) const
Check if a directory is being watched by this KDirWatch instance.
Definition kdirwatch.cpp:1879
bool stopDirScan(const QString &path)
Stops scanning the specified path.
Definition kdirwatch.cpp:1837
static void statistics()
Dump statistic information about the KDirWatch::self() instance.
Definition kdirwatch.cpp:1899
void removeDir(const QString &path)
Removes a directory from the list of scanned directories.
Definition kdirwatch.cpp:1819
Method internalMethod()
Returns the preferred internal method to watch for changes.
Definition kdirwatch.cpp:1927
void startScan(bool notify=false, bool skippedToo=false)
Starts scanning of all dirs in list.
Definition kdirwatch.cpp:1870
void addDir(const QString &path, WatchModes watchModes=WatchDirOnly)
Adds a directory to be watched.
Definition kdirwatch.cpp:1796
bool isStopped()
Is scanning stopped? After creation of a KDirWatch instance, this is false.
Definition kdirwatch.cpp:1865
QDateTime ctime(const QString &path) const
Returns the time the directory/file was last changed.
Definition kdirwatch.cpp:1809
bool restartDirScan(const QString &path)
Restarts scanning for specified path.
Definition kdirwatch.cpp:1846
Definition kdirwatch_p.h:89
Definition kaboutdata.h:33
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition kglobal.h:221
#define mask
static KDirWatch::Method methodFromString(const QString &method)
Definition kdirwatch.cpp:88
static const char * methodToString(KDirWatch::Method method)
Definition kdirwatch.cpp:106
QDebug operator<<(QDebug debug, const KDirWatchPrivate::Entry &entry)
Definition kdirwatch.cpp:561
Type fileSystemType(const QString &path)
Definition kdirwatch_p.h:126
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.