| 693 | } |
| 694 | |
| 695 | void 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 | |
| 710 | void FileSystemManager::onFileRemoved(LPCWSTR strFileName) |
| 711 | { |