MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / SetupWatcher

Method SetupWatcher

plugins/base/macro-condition-folder.cpp:212–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void MacroConditionFolder::SetupWatcher()
213{
214 _watcher = std::make_unique<QFileSystemWatcher>();
215 const auto path = QString::fromStdString(_folder);
216 _currentFiles = getFilesInDir(path);
217 _currentDirs = getDirsInDir(path);
218 _lastWatchedValue = _folder.UnresolvedValue();
219 connect(_watcher.get(), SIGNAL(directoryChanged(const QString &)), this,
220 SLOT(DirectoryChanged(const QString &)));
221 connect(_watcher.get(), SIGNAL(fileChanged(const QString &)), this,
222 SLOT(FileChanged(const QString &)));
223 _watcher.get()->addPaths(getFileWatcherList(_currentFiles, path));
224 _watcher->addPath(path);
225}
226
227void MacroConditionFolder::SetTempVarValues()
228{

Callers

nothing calls this directly

Calls 4

getFilesInDirFunction · 0.85
getDirsInDirFunction · 0.85
getFileWatcherListFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected