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

Method onFileAdded

trunk/win/Source/BT_FileSystemManager.cpp:695–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695void FileSystemManager::onFileAdded(LPCWSTR strFileName)
696{
697 QMutexLocker m(&_memberMutex);
698 QString wideFileName = QString::fromUtf16((const ushort *)strFileName);
699 QDir parentPath = parent(wideFileName);
700 Watchable * obj = getWatchObjFromPath(native(parentPath));
701
702 // If we actually have a watcher on this directory, notify it on the next tick
703 if (obj)
704 {
705 // Add it to the List
706 eventList.push_back(WatchableEvent(obj, FileAdded, wideFileName, QString()));
707 }
708}
709
710void FileSystemManager::onFileRemoved(LPCWSTR strFileName)
711{

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