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

Method onFileNameChanged

trunk/win/Source/BT_FileSystemManager.cpp:725–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725void FileSystemManager::onFileNameChanged(LPCWSTR strOldFileName, LPCWSTR strNewFileName)
726{
727 QMutexLocker m(&_memberMutex);
728 QString wideOldFileName = QString::fromUtf16((const ushort *)strOldFileName);
729 QString wideNewFileName = QString::fromUtf16((const ushort *)strNewFileName);
730 QDir parentPath = parent(wideOldFileName);
731 Watchable * obj = getWatchObjFromPath(native(parentPath));
732
733 // If we actually have a watcher on this directory, notify it on the next tick
734 if (obj)
735 {
736 // Add it to the List
737 eventList.push_back(WatchableEvent(obj, FileRenamed, wideOldFileName, wideNewFileName));
738 }
739}
740
741void FileSystemManager::onFileModified(LPCWSTR strFileName)
742{

Callers 1

updateMethod · 0.45

Calls 4

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

Tested by

no test coverage detected