filemanager/App/src/CFileManagerMainView.cpp
branchRCL_3
changeset 28 529f3bf5c2f1
parent 20 efe289f793e7
equal deleted inserted replaced
23:18e505e3f370 28:529f3bf5c2f1
   218 #endif // RD_FILE_MANAGER_BACKUP
   218 #endif // RD_FILE_MANAGER_BACKUP
   219         aMenuPane.SetItemDimmed( EFileManagerMemoryStorage, ETrue );
   219         aMenuPane.SetItemDimmed( EFileManagerMemoryStorage, ETrue );
   220         return;
   220         return;
   221         }
   221         }
   222 
   222 
   223     if ( !FeatureManager().IsRemoteStorageFwSupported() )
       
   224         {
       
   225         aMenuPane.SetItemDimmed( EFileManagerRemoveDrives, ETrue );
       
   226         }
       
   227 
       
   228     CFileManagerItemProperties* prop = iEngine.GetItemInfoLC(
   223     CFileManagerItemProperties* prop = iEngine.GetItemInfoLC(
   229         iContainer->ListBoxCurrentItemIndex() );
   224         iContainer->ListBoxCurrentItemIndex() );
   230     TUint32 drvState( 0 );
   225     TUint32 drvState( 0 );
   231     if ( prop->IsDrive() )
   226     if ( prop->IsDrive() )
   232         {
   227         {
   237     if ( DriveInfoAtCurrentPosL( drvInfo ) < 0 )
   232     if ( DriveInfoAtCurrentPosL( drvInfo ) < 0 )
   238         {
   233         {
   239         // No drive selected
   234         // No drive selected
   240         aMenuPane.SetItemDimmed( EFileManagerMemoryStorage, ETrue );
   235         aMenuPane.SetItemDimmed( EFileManagerMemoryStorage, ETrue );
   241         aMenuPane.SetItemDimmed( EFileManagerEject, ETrue );
   236         aMenuPane.SetItemDimmed( EFileManagerEject, ETrue );
       
   237         aMenuPane.SetItemDimmed( EFileManagerRemoveDrives, ETrue );
   242         }
   238         }
   243     else
   239     else
   244         {
   240         {
   245         if ( !( drvInfo.iState & TFileManagerDriveInfo::EDriveEjectable ) ||
   241         if ( !( drvInfo.iState & TFileManagerDriveInfo::EDriveEjectable ) ||
   246              !( drvInfo.iState & TFileManagerDriveInfo::EDrivePresent ) )
   242              !( drvInfo.iState & TFileManagerDriveInfo::EDrivePresent ) )
   253             aMenuPane.SetItemDimmed( EFileManagerMemoryStorage, ETrue );
   249             aMenuPane.SetItemDimmed( EFileManagerMemoryStorage, ETrue );
   254             }
   250             }
   255         if ( drvInfo.iState & TFileManagerDriveInfo::EDriveRemote )
   251         if ( drvInfo.iState & TFileManagerDriveInfo::EDriveRemote )
   256             {
   252             {
   257             aMenuPane.SetItemDimmed( EFileManagerMemoryStorage, ETrue );
   253             aMenuPane.SetItemDimmed( EFileManagerMemoryStorage, ETrue );
       
   254             }
       
   255         if  ( !FeatureManager().IsRemoteStorageFwSupported() ||
       
   256               !( drvInfo.iState & TFileManagerDriveInfo::EDriveRemote ) )
       
   257             {
       
   258             aMenuPane.SetItemDimmed( EFileManagerRemoveDrives, ETrue );
   258             }
   259             }
   259         }
   260         }
   260 
   261 
   261 #ifndef RD_FILE_MANAGER_BACKUP
   262 #ifndef RD_FILE_MANAGER_BACKUP
   262     TFileManagerDriveInfo mmcinfo( iEngine.GetMMCInfoL() );
   263     TFileManagerDriveInfo mmcinfo( iEngine.GetMMCInfoL() );