emailuis/emailui/src/FreestyleEmailUiWizardObserver.cpp
branchRCL_3
changeset 23 dcf0eedfc1a3
parent 8 e1b6206813b4
equal deleted inserted replaced
22:d620048b4810 23:dcf0eedfc1a3
   408                 // launch the inbox of the new mailbox
   408                 // launch the inbox of the new mailbox
   409                 TMailListActivationData tmp;    
   409                 TMailListActivationData tmp;    
   410                 tmp.iFolderId = inboxFolderId; 
   410                 tmp.iFolderId = inboxFolderId; 
   411                 tmp.iMailBoxId = iNewlyCreatedMailboxId; 
   411                 tmp.iMailBoxId = iNewlyCreatedMailboxId; 
   412                 const TPckgBuf<TMailListActivationData> pkgOut( tmp );
   412                 const TPckgBuf<TMailListActivationData> pkgOut( tmp );
       
   413                 // The App might have been, say, in Attachments list of some 
       
   414                 // other mailbox but we should not return there with 'Back' 
       
   415                 // button - it should go to the launcher grid.  So first
       
   416                 // switch to launcher grid (which should unwind the history
       
   417                 // back to the launcher grid, which should be the view at
       
   418                 // the bottom of the stack) and then erase the history just
       
   419                 // to make sure it's really all gone.
       
   420                 iAppUi->EnterFsEmailViewL( AppGridId );
       
   421                 iAppUi->EraseViewHistory();
       
   422                 // Now switch to the mail list.
   413                 iAppUi->EnterFsEmailViewL( MailListId, KStartListWithFolderId, 
   423                 iAppUi->EnterFsEmailViewL( MailListId, KStartListWithFolderId, 
   414                         pkgOut );
   424                         pkgOut );
   415                 // the App might have been, say, in Attachments list of some 
       
   416                 // other mailbox but we should not return there with 'Back' 
       
   417                 // button
       
   418                 iAppUi->EraseViewHistory();
       
   419                 }
   425                 }
   420                 
   426                 
   421             CleanupStack::PopAndDestroy( mailBox );
   427             CleanupStack::PopAndDestroy( mailBox );
   422             }
   428             }
   423         }
   429         }