equal
deleted
inserted
replaced
305 |
305 |
306 CPIXLOGSTRING("END CFilePlugin::MountL"); |
306 CPIXLOGSTRING("END CFilePlugin::MountL"); |
307 OstTraceFunctionExit0( CFILEPLUGIN_MOUNTL_EXIT ); |
307 OstTraceFunctionExit0( CFILEPLUGIN_MOUNTL_EXIT ); |
308 } |
308 } |
309 |
309 |
310 void CFilePlugin::UnMount(TDriveNumber aMedia, TBool aUndefineAsWell) |
310 void CFilePlugin::UnMount(TDriveNumber aMedia, TBool aUndefineAsWell,TBool aRemoveQueuePersist) |
311 { |
311 { |
312 OstTraceFunctionEntry0( CFILEPLUGIN_UNMOUNT_ENTRY ); |
312 OstTraceFunctionEntry0( CFILEPLUGIN_UNMOUNT_ENTRY ); |
313 CPIXLOGSTRING("ENTER CFilePlugin::UnMount "); |
313 CPIXLOGSTRING("ENTER CFilePlugin::UnMount "); |
314 // Check if already exists |
314 // Check if already exists |
315 if (!iIndexer[aMedia] && !iFolderIndexer[aMedia]) |
315 if (!iIndexer[aMedia] && !iFolderIndexer[aMedia]) |
323 FormBaseAppClass(aMedia,KFileBaseAppClassFolder, baseFolderAppClass); |
323 FormBaseAppClass(aMedia,KFileBaseAppClassFolder, baseFolderAppClass); |
324 //Form the baseappclass for content |
324 //Form the baseappclass for content |
325 TBuf<KFilePluginBaseAppClassMaxLen> baseContentAppClass; |
325 TBuf<KFilePluginBaseAppClassMaxLen> baseContentAppClass; |
326 FormBaseAppClass(aMedia,KFileBaseAppClassContent, baseContentAppClass); |
326 FormBaseAppClass(aMedia,KFileBaseAppClassContent, baseContentAppClass); |
327 |
327 |
328 // Remove from harvesting queue |
328 // Remove from harvesting queue aRemovePersist will remove from config file as well |
329 iObserver->RemoveHarvestingQueue(this, baseContentAppClass); |
329 iObserver->RemoveHarvestingQueue(this, baseContentAppClass,aRemoveQueuePersist); |
330 |
330 |
331 // Delete the index object |
331 // Delete the index object |
332 if (iIndexer[aMedia]) |
332 if (iIndexer[aMedia]) |
333 { |
333 { |
334 delete iIndexer[aMedia]; |
334 delete iIndexer[aMedia]; |