498 FsNotify::DiskChange(aDrive); |
498 FsNotify::DiskChange(aDrive); |
499 |
499 |
500 #ifdef SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION |
500 #ifdef SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION |
501 if(FsNotificationManager::IsInitialised()) |
501 if(FsNotificationManager::IsInitialised()) |
502 { |
502 { |
|
503 CFsNotificationInfo* notificationInfo = CFsNotificationInfo::Allocate(EFsDismountFileSystem,aDrive); |
503 __PRINT3(_L("LocalDrives::CompleteDriveNotifications() Initialised=%d, Count=%d, Drive=%d"),FsNotificationManager::IsInitialised(),FsNotificationManager::Count(), aDrive); |
504 __PRINT3(_L("LocalDrives::CompleteDriveNotifications() Initialised=%d, Count=%d, Drive=%d"),FsNotificationManager::IsInitialised(),FsNotificationManager::Count(), aDrive); |
504 TBuf<2> driveDes; |
505 TBuf<2> driveDes; |
505 driveDes.Append((TChar)aDrive+(TChar)'A'); |
506 driveDes.Append((TChar)aDrive+(TChar)'A'); |
506 driveDes.Append((TChar)':'); |
507 driveDes.Append((TChar)':'); |
507 FsNotificationManager::HandleChange(NULL,driveDes,TFsNotification::EMediaChange); |
508 notificationInfo->SetSourceName(driveDes); |
|
509 FsNotificationManager::HandleChange(*notificationInfo); |
|
510 CFsNotificationInfo::Free(notificationInfo); |
508 } |
511 } |
509 #endif //SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION |
512 #endif //SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION |
510 |
513 |
511 //If this is a multislot device we should update mappings here. |
514 //If this is a multislot device we should update mappings here. |
512 TheDrives[aDrive].MultiSlotDriveCheck(); |
515 TheDrives[aDrive].MultiSlotDriveCheck(); |