| 739 | } |
| 740 | |
| 741 | void FileSystemManager::onFileModified(LPCWSTR strFileName) |
| 742 | { |
| 743 | QMutexLocker m(&_memberMutex); |
| 744 | QString wideFileName = QString::fromUtf16((const ushort *) strFileName); |
| 745 | QDir parentPath = parent(wideFileName); |
| 746 | Watchable * obj = getWatchObjFromPath(native(parentPath)); |
| 747 | |
| 748 | // If we actually have a watcher on this directory, notify it on the next tick |
| 749 | if (obj) |
| 750 | { |
| 751 | // Add it to the List |
| 752 | eventList.push_back(WatchableEvent(obj, FileModified, wideFileName, QString())); |
| 753 | } |
| 754 | } |
| 755 | |
| 756 | StrList FileSystemManager::getWorkingDirectoryContents(QString filter) |
| 757 | { |