MCPcopy Create free account
hub / github.com/KDE/kdevelop / continueWatcher

Method continueWatcher

kdevplatform/project/abstractfilemanagerplugin.cpp:397–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void AbstractFileManagerPluginPrivate::continueWatcher(ProjectFolderItem* folder)
398{
399 if ( !folder->path().isLocalFile() ) {
400 return;
401 }
402 auto watcher = m_watchers.value(folder->project(), nullptr);
403 Q_ASSERT(watcher);
404 const QString path = folder->path().toLocalFile();
405 if (!watcher->restartDirScan(path)) {
406 // path wasn't being watched yet - can we be 100% certain of that will never happen?
407 qCWarning(FILEMANAGER) << "Folder" << path << "in project" << folder->project()->name() << "wasn't yet being watched";
408 watcher->addDir(path);
409 }
410 const int idx = m_stoppedFolders.indexOf(path);
411 if (idx != -1) {
412 m_stoppedFolders.remove(idx);
413 }
414}
415//END Private
416
417//BEGIN Plugin

Callers 5

addFolderMethod · 0.80
addFileMethod · 0.80
removeFilesAndFoldersMethod · 0.80
moveFilesAndFoldersMethod · 0.80
copyFilesAndFoldersMethod · 0.80

Calls 8

isLocalFileMethod · 0.80
toLocalFileMethod · 0.80
pathMethod · 0.45
valueMethod · 0.45
projectMethod · 0.45
nameMethod · 0.45
indexOfMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected