3317 AreChosenFilesProtectedL( ETrue ) ) |
3317 AreChosenFilesProtectedL( ETrue ) ) |
3318 { |
3318 { |
3319 dimSend = ETrue; |
3319 dimSend = ETrue; |
3320 } |
3320 } |
3321 |
3321 |
3322 /* Codes below will cause trouble for large amount file selection |
|
3323 if ( !dimSend ) |
|
3324 { |
|
3325 // Check if there are files to send |
|
3326 TInt dummy( 0 ); |
|
3327 CArrayFixFlat< TInt >* files = GetSendFilesLC( dummy ); |
|
3328 if ( !files->Count() ) |
|
3329 { |
|
3330 dimSend = ETrue; |
|
3331 } |
|
3332 CleanupStack::PopAndDestroy( files ); |
|
3333 } |
|
3334 */ |
|
3335 |
3322 |
3336 // Hide empty details if no item or memory specific details |
3323 // Hide empty details if no item or memory specific details |
3337 // can be shown. |
3324 // can be shown. |
3338 if ( isSearchOn || |
3325 if ( isSearchOn || |
3339 ( drvInfo.iState & TFileManagerDriveInfo::EDriveRemote ) ) |
3326 ( drvInfo.iState & TFileManagerDriveInfo::EDriveRemote ) ) |
3340 { |
3327 { |
3341 aMenuPane.SetItemDimmed( EFileManagerDetails, ETrue ); |
3328 aMenuPane.SetItemDimmed( EFileManagerDetails, ETrue ); |
3342 } |
3329 } |
3343 if ( ( drvInfo.iState & TFileManagerDriveInfo::EDriveRemote ) && |
3330 |
3344 !( drvInfo.iState & TFileManagerDriveInfo::EDriveConnected ) ) |
3331 if ( !( drvInfo.iState & TFileManagerDriveInfo::EDrivePresent ) || |
3345 { |
3332 ( ( drvInfo.iState & TFileManagerDriveInfo::EDriveRemote ) && |
3346 // Handle disconnected remote drive |
3333 !( drvInfo.iState & TFileManagerDriveInfo::EDriveConnected ) ) ) |
3347 dimSend = ETrue; |
3334 { |
3348 } |
3335 // Handle unavailable drive OR disconnected remote drive |
|
3336 dimSend = ETrue; |
|
3337 aMenuPane.SetItemDimmed( EFileManagerSort, ETrue ); |
|
3338 aMenuPane.SetItemDimmed( EFileManagerOrganise, ETrue ); |
|
3339 aMenuPane.SetItemDimmed( EFileManagerMark, ETrue ); |
|
3340 } |
3349 } |
3341 } |
3350 else if ( iContainer->ListBoxNumberOfItems() ) |
3342 else if ( iContainer->ListBoxNumberOfItems() ) |
3351 { |
3343 { |
3352 // There is items in list, check selection type |
3344 // There is items in list, check selection type |
3353 TUint32 fileType( iEngine.FileTypeL( |
3345 TUint32 fileType( iEngine.FileTypeL( |