emailuis/emailui/src/FreestyleEmailUiSettingsList.cpp
branchRCL_3
changeset 31 72d484772ca6
parent 8 e1b6206813b4
child 16 4ce476e64c59
equal deleted inserted replaced
8:e1b6206813b4 31:72d484772ca6
    58 #include "FreestyleEmailUiAppui.h"
    58 #include "FreestyleEmailUiAppui.h"
    59 #include "FreestyleEmailUiLauncherGridVisualiser.h"
    59 #include "FreestyleEmailUiLauncherGridVisualiser.h"
    60 #include "FreestyleEmailUiShortcutBinding.h"
    60 #include "FreestyleEmailUiShortcutBinding.h"
    61 #include "FreestyleEmailUiUtilities.h"
    61 #include "FreestyleEmailUiUtilities.h"
    62 #include "FSEmail.pan"
    62 #include "FSEmail.pan"
    63 
    63 #include "fsemailstatuspaneindicatorhandler.h"
    64 // CONSTANTS
    64 // CONSTANTS
    65 
    65 
    66 
    66 
    67 //** PIM selection dialog **
    67 //** PIM selection dialog **
    68 
    68 
   497         {
   497         {
   498         if ( aEventType == EEventItemSingleClicked ||
   498         if ( aEventType == EEventItemSingleClicked ||
   499         	 aEventType == EEventEnterKeyPressed )
   499         	 aEventType == EEventEnterKeyPressed )
   500             {
   500             {
   501             HandleUserSelectionsL();
   501             HandleUserSelectionsL();
       
   502             //  Fix for EJSA-82HB3F, improves fix for EELN-7Y78DM
       
   503             //  Update title pane, needed for touch support
       
   504             HBufC* text = CreateTitlePaneTextLC();
       
   505             iAppUi.SetTitlePaneTextL( *text );
       
   506             CleanupStack::PopAndDestroy( text );
   502             }
   507             }
   503         }
   508         }
   504 
   509 
   505     }
   510     }
   506 
   511 
   559             iSelectedPluginSettings = mailbox->GetSettingsUid();
   564             iSelectedPluginSettings = mailbox->GetSettingsUid();
   560             CleanupStack::PopAndDestroy( mailbox );
   565             CleanupStack::PopAndDestroy( mailbox );
   561             iPIMListActivation = ETrue;
   566             iPIMListActivation = ETrue;
   562             SetSelectedMainListIndex( index );
   567             SetSelectedMainListIndex( index );
   563             CreatePluginPIMListL( iSelectedPluginSettings );
   568             CreatePluginPIMListL( iSelectedPluginSettings );
   564             // Update the title pane, needed for touch support
       
   565             HBufC* text = CreateTitlePaneTextLC();
       
   566             iAppUi.SetTitlePaneTextL( *text );
       
   567             CleanupStack::PopAndDestroy( text );
       
   568             }
   569             }
   569         else // index < 0; this should never happen
   570         else // index < 0; this should never happen
   570             {
   571             {
   571             __ASSERT_DEBUG( EFalse, Panic(EFSEmailUiUnexpectedValue) );
   572             __ASSERT_DEBUG( EFalse, Panic(EFSEmailUiUnexpectedValue) );
   572             }
   573             }
  1585             iWaitDialog = new (ELeave) CAknWaitDialog(
  1586             iWaitDialog = new (ELeave) CAknWaitDialog(
  1586                     (REINTERPRET_CAST(CEikDialog**, &iWaitDialog)), EFalse );
  1587                     (REINTERPRET_CAST(CEikDialog**, &iWaitDialog)), EFalse );
  1587             iWaitDialog->PrepareLC( R_FS_WAIT_NOTE_REMOVING_MAILBOX );
  1588             iWaitDialog->PrepareLC( R_FS_WAIT_NOTE_REMOVING_MAILBOX );
  1588             iWaitDialog->SetCallback( this );
  1589             iWaitDialog->SetCallback( this );
  1589             iWaitDialog->RunLD();
  1590             iWaitDialog->RunLD();
  1590             // Set email indicator off.
  1591 
  1591             TFsEmailUiUtility::ToggleEmailIconL(EFalse);
  1592             //emailindicator handling, we dont care if something goes wrong in the mailindicator update. 
       
  1593             TRAP_IGNORE(TFsEmailStatusPaneIndicatorHandler::StatusPaneMailIndicatorHandlingL( mailBox->GetId().Id()));
       
  1594             
  1592             // delete mailbox and wait event (RequestResponseL)
  1595             // delete mailbox and wait event (RequestResponseL)
  1593             iDeleteMailboxId = iMailClient.DeleteMailBoxByUidL( mailBox->GetId(), *this );
  1596             iDeleteMailboxId = iMailClient.DeleteMailBoxByUidL( mailBox->GetId(), *this );
  1594             wasDeleted = ETrue;
  1597             wasDeleted = ETrue;
  1595             }
  1598             }
  1596         }
  1599         }