harvesterplugins/file/src/cfileplugin.cpp
changeset 3 6832643895f7
parent 2 208a4ba3894c
child 5 3bc31ad99ee7
equal deleted inserted replaced
2:208a4ba3894c 3:6832643895f7
   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];