| 723 | } |
| 724 | |
| 725 | void 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 | |
| 741 | void FileSystemManager::onFileModified(LPCWSTR strFileName) |
| 742 | { |
no test coverage detected