emailuis/emailui/src/ncscomposeview.cpp
branchRCL_3
changeset 18 6b8f3b30d0ec
parent 17 67369d1b217f
child 20 efd4f1afd43e
equal deleted inserted replaced
17:67369d1b217f 18:6b8f3b30d0ec
   963                                 R_FREESTYLE_EMAIL_CONFIRM_NOTE_QUEUED_UNTIL_ONLINE );
   963                                 R_FREESTYLE_EMAIL_CONFIRM_NOTE_QUEUED_UNTIL_ONLINE );
   964                         }
   964                         }
   965                     CAknConfirmationNote* note = 
   965                     CAknConfirmationNote* note = 
   966                         new (ELeave) CAknConfirmationNote( ETrue ); //waiting
   966                         new (ELeave) CAknConfirmationNote( ETrue ); //waiting
   967                     note->SetTimeout( CAknNoteDialog::ELongTimeout );
   967                     note->SetTimeout( CAknNoteDialog::ELongTimeout );
       
   968                     note->SetTone( CAknNoteDialog::ENoTone );
   968                     note->ExecuteLD( *confMessage );
   969                     note->ExecuteLD( *confMessage );
   969                     CleanupStack::PopAndDestroy( confMessage );
   970                     CleanupStack::PopAndDestroy( confMessage );
   970                     DoSafeExit(); // Exit after successful sending
   971                     DoSafeExit(); // Exit after successful sending
   971                     }
   972                     }
   972                 else if ( error == KErrBadName )
   973                 else if ( error == KErrBadName )
  2462     if ( attachmentsInModel )
  2463     if ( attachmentsInModel )
  2463         {
  2464         {
  2464         item = static_cast<CFSEmailUiSendAttachmentsListModelItem*>( 
  2465         item = static_cast<CFSEmailUiSendAttachmentsListModelItem*>( 
  2465                 attachmentModel->Item( 
  2466                 attachmentModel->Item( 
  2466                     iContainer->FocusedAttachmentLabelIndex() ) );
  2467                     iContainer->FocusedAttachmentLabelIndex() ) );
  2467         if ( !item || item->IsRemote() )
  2468         // Only non-remote attachments can be opened
  2468             {
  2469         TBool dimOpenMenuItem = !item || item->IsRemote(); 
  2469             // Only non-remote attachments can be opened
  2470         iStylusPopUpMenu->SetItemDimmed( EFsEmailUiCmdOpenAttachment, dimOpenMenuItem );
  2470             iStylusPopUpMenu->SetItemDimmed( EFsEmailUiCmdOpenAttachment, ETrue );
  2471 
  2471             }
  2472         // Read-only attachments cannot be removed
  2472         }
  2473         TBool dimRemoveMenuItem = !item || item->IsReadOnly();  
  2473 
  2474         iStylusPopUpMenu->SetItemDimmed( EFsEmailUiCmdRemoveAttachment, dimRemoveMenuItem );
  2474     if ( !item || item->IsReadOnly() )
       
  2475         {
       
  2476         // Only non-readonly attachments can be removed
       
  2477         iStylusPopUpMenu->SetItemDimmed( EFsEmailUiCmdRemoveAttachment, ETrue );
       
  2478         }
  2475         }
  2479 
  2476 
  2480     // Set the position for the popup
  2477     // Set the position for the popup
  2481 	iStylusPopUpMenu->SetPosition( aPenEventScreenLocation );
  2478 	iStylusPopUpMenu->SetPosition( aPenEventScreenLocation );
  2482 
  2479