MCPcopy Create free account
hub / github.com/TheAssassin/AppImageLauncher / readEvents

Method readEvents

src/fswatcher/filesystemwatcher.cpp:272–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void FileSystemWatcher::readEvents() {
273 auto events = d->readEventsFromFd();
274
275 for (const auto& event : events) {
276 const auto mask = event.mask;
277
278 if (mask & d->fileChangeEvents) {
279 emit fileChanged(event.path);
280 } else if (mask & d->fileRemovalEvents) {
281 emit fileRemoved(event.path);
282 }
283 }
284}
285
286bool FileSystemWatcher::updateWatchedDirectories(QDirSet watchedDirectories) {
287 // the list may contain entries for directories which don't exist already, therefore we have to remove those first

Callers

nothing calls this directly

Calls 1

readEventsFromFdMethod · 0.80

Tested by

no test coverage detected