harvesterplugins/media/audio/src/mediaplugin.cpp
changeset 13 0a2ec6860a93
parent 2 208a4ba3894c
child 19 08315a312857
equal deleted inserted replaced
10:d05738f02936 13:0a2ec6860a93
    86 	delete iMdeHarvester;
    86 	delete iMdeHarvester;
    87 	delete iMdsMonitor;
    87 	delete iMdsMonitor;
    88 	delete iObjectJobQueueManager;
    88 	delete iObjectJobQueueManager;
    89 	delete iMdsUtils;
    89 	delete iMdsUtils;
    90 	delete iAudioDocument;
    90 	delete iAudioDocument;
       
    91 	iIndexerUtil->UnMountAllDrivesL(_L(MEDIAGENERICAPPCLASS));
    91 	delete iIndexerUtil;
    92 	delete iIndexerUtil;
    92 	delete iMMcMonitor;
    93 	delete iMMcMonitor;
    93 	delete iDBManager;
    94 	delete iDBManager;
    94 	delete iMdsItem;
    95 	delete iMdsItem;
    95 	}
    96 	}
   233                 {
   234                 {
   234                 OstTrace1( TRACE_NORMAL, DUP5_CAUDIOPLUGIN_HANDLEMDEITEML, "CAudioPlugin::HandleMdeItemL;Error %d in adding", err );
   235                 OstTrace1( TRACE_NORMAL, DUP5_CAUDIOPLUGIN_HANDLEMDEITEML, "CAudioPlugin::HandleMdeItemL;Error %d in adding", err );
   235                 CPIXLOGSTRING2("CAudioPlugin::HandleMdeItemL(): Error %d in adding.", err);
   236                 CPIXLOGSTRING2("CAudioPlugin::HandleMdeItemL(): Error %d in adding.", err);
   236                 }
   237                 }
   237             }
   238             }
   238         else if (aActionType == ECPixUpdateAction)
   239         else
   239             {
   240             {
   240             //If DocID for e.g \music\something.mp3 itself changes the we have to compare
   241             //If DocID for e.g \music\something.mp3 itself changes the we have to compare
   241             //existing URI with new one and Remove that first and Update to avoid 
   242             //existing URI with new one and Remove that first and Update to avoid 
   242             //Duplicate entries
   243             //Duplicate entries
   243             iMdsItem->Reset();//reset existing values
   244             iMdsItem->Reset();//reset existing values