diff -r c53acadfccc6 -r acef663c1218 harvester/monitorplugins/mmcplugin/src/mmcmonitorplugin.cpp --- a/harvester/monitorplugins/mmcplugin/src/mmcmonitorplugin.cpp Mon Jan 18 20:34:07 2010 +0200 +++ b/harvester/monitorplugins/mmcplugin/src/mmcmonitorplugin.cpp Tue Jan 26 12:13:20 2010 +0200 @@ -24,6 +24,8 @@ #include +const TInt KMassStorageScanCustomPriority = 5; + _LIT( KColon, ":" ); // construct/destruct @@ -106,8 +108,8 @@ hdMediaId = iMountTask->GetInternalDriveMediaId(); TBool alreadyWaited( EFalse ); - - for ( TInt i = 0; i < medias.Count(); i++ ) + const TInt count( medias.Count() ); + for ( TInt i = 0; i < count; i++ ) { TRAP_IGNORE( iMdEClient->GetMediaL( medias[i].iMediaId, driveLetter, presentState ) ); @@ -136,7 +138,7 @@ medias.Append( hdInfo ); TRAP_IGNORE( iHddScanner = CMmcScannerAO::NewL( hdMediaId, iMdEClient, iObserver, - aHarvesterPluginFactory, CActive::EPriorityUserInput, alreadyWaited )); + aHarvesterPluginFactory, KMassStorageScanCustomPriority, alreadyWaited )); } } @@ -279,7 +281,6 @@ void CMMCMonitorPlugin::StartMonitoringAllMMCsL( RArray& aMedias ) { WRITELOG( "CMMCMonitorPlugin::StartMonitoringAllMMCs" ); - TInt count( 0 ); RFs fs; User::LeaveIfError( fs.Connect() ); @@ -297,6 +298,7 @@ TChar drive; const TInt acount = driveList.Length(); const TInt mediaCount = aMedias.Count(); + TInt count( 0 ); // set removed medias to not present for ( i = 0; i < mediaCount; i++ )