harvester/monitorplugins/mmcplugin/src/mmcmonitorplugin.cpp
changeset 28 c461c7fa72c2
parent 25 8e4539ab1889
child 40 910a23996aa0
child 45 a93990e5815e
child 54 a3cc46f37772
equal deleted inserted replaced
25:8e4539ab1889 28:c461c7fa72c2
   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