MCPcopy Create free account
hub / github.com/bumptop/BumpTop / onFileRemoved

Method onFileRemoved

trunk/win/Source/BT_FileSystemManager.cpp:710–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710void FileSystemManager::onFileRemoved(LPCWSTR strFileName)
711{
712 QMutexLocker m(&_memberMutex);
713 QString wideFileName = QString::fromUtf16((const ushort *)strFileName);
714 QDir parentPath = parent(wideFileName);
715 Watchable * obj = getWatchObjFromPath(native(parentPath));
716
717 // If we actually have a watcher on this directory, notify it on the next tick
718 if (obj)
719 {
720 // Add it to the List
721 eventList.push_back(WatchableEvent(obj, FileDeleted, wideFileName, QString()));
722 }
723}
724
725void FileSystemManager::onFileNameChanged(LPCWSTR strOldFileName, LPCWSTR strNewFileName)
726{

Callers 1

updateMethod · 0.45

Calls 5

WatchableEventClass · 0.85
parentFunction · 0.70
nativeFunction · 0.70
QStringFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected