harvester/monitorplugins/mmcplugin/src/mmcmonitorplugin.cpp
branchRCL_3
changeset 13 4a4892eec172
parent 12 9f21bab39f42
child 19 b73252188534
equal deleted inserted replaced
12:9f21bab39f42 13:4a4892eec172
   111 	TBool presentState( EFalse );
   111 	TBool presentState( EFalse );
   112     
   112     
   113 	TUint32 hdMediaId( 0 );
   113 	TUint32 hdMediaId( 0 );
   114     hdMediaId = iMountTask->GetInternalDriveMediaId();
   114     hdMediaId = iMountTask->GetInternalDriveMediaId();
   115     
   115     
   116     const TInt count( medias.Count() );
   116     for( TInt i = medias.Count() - 1; i >=0; i-- )
   117     for ( TInt i = 0; i < count; i++ )
       
   118     	{
   117     	{
   119     	TRAP_IGNORE( iMdEClient->GetMediaL( medias[i].iMediaId, driveLetter, presentState ) );
   118     	TRAP_IGNORE( iMdEClient->GetMediaL( medias[i].iMediaId, driveLetter, presentState ) );
   120     	
   119     	
   121     	if ( presentState && medias[i].iMediaId != hdMediaId )
   120     	if ( presentState && medias[i].iMediaId != hdMediaId )
   122     		{
   121     		{
   347                 driveList[i] = 0;
   346                 driveList[i] = 0;
   348                 continue;
   347                 continue;
   349                 }
   348                 }
   350             
   349             
   351             iFs.Drive( driveInfo, i );
   350             iFs.Drive( driveInfo, i );
   352             if ( ((driveInfo.iDriveAtt & KDriveAttRemovable) || (driveInfo.iDriveAtt & KDriveAttLogicallyRemovable) ||
   351             if( ( (driveStatus & DriveInfo::EDriveRemovable) ||
   353                    (driveInfo.iType == EMediaHardDisk && driveStatus & DriveInfo::EDriveInternal) ) &&
   352                    (driveInfo.iType == EMediaHardDisk && driveStatus & DriveInfo::EDriveInternal) ||
   354                    (driveInfo.iType != EMediaNotPresent) )
   353                    (driveInfo.iDriveAtt & KDriveAttLogicallyRemovable) ||
       
   354                    (driveInfo.iDriveAtt & KDriveAttRemovable) ) &&
       
   355                 (driveInfo.iType != EMediaNotPresent) )
   355                 {
   356                 {
   356                 count++; // DEBUG INFO
   357                 count++; // DEBUG INFO
   357                 
   358                 
   358                 iFs.DriveToChar( i, drive );
   359                 iFs.DriveToChar( i, drive );
   359                 
   360