emailuis/emailui/src/FreestyleEmailDownloadInformationMediator.cpp
branchRCL_3
changeset 17 67369d1b217f
parent 16 b5fbb9b25d57
child 18 6b8f3b30d0ec
equal deleted inserted replaced
16:b5fbb9b25d57 17:67369d1b217f
   827 	{
   827 	{
   828 	FUNC_LOG;
   828 	FUNC_LOG;
   829     // no close button pressed
   829     // no close button pressed
   830     if (iStatus.Int() != EAknSoftkeyClose )
   830     if (iStatus.Int() != EAknSoftkeyClose )
   831         {
   831         {
   832         // open attachment list
       
   833         if ( iPopupLaunchData.iMessagePartId.IsNullId() )
       
   834             {
       
   835             TAttachmentListActivationData params;
       
   836             params.iMailBoxId = iPopupLaunchData.iMailBoxId;
       
   837             params.iFolderId = iPopupLaunchData.iFolderId;
       
   838             params.iMessageId = iPopupLaunchData.iMessageId;
       
   839             // use package buffer to pass the params
       
   840             TPckgBuf<TAttachmentListActivationData> buf( params );
       
   841             TUid emptyCustomMessageId = { 0 };
       
   842             CFreestyleEmailUiAppUi* appUi = (CFreestyleEmailUiAppUi*)CCoeEnv::Static()->AppUi();
       
   843             appUi->EnterFsEmailViewL( AttachmentMngrViewId, emptyCustomMessageId, buf );
       
   844             }
       
   845         // open attachment
   832         // open attachment
   846         else
   833         if ( !iPopupLaunchData.iMessagePartId.IsNullId() )
   847             {
   834             {
   848             // Force FsEmailUI to foreground because global completion note may appear
   835             // Force FsEmailUI to foreground because global completion note may appear
   849             // while some other application is active and our local error notes are not shown
   836             // while some other application is active and our local error notes are not shown
   850             // in that case. (This wouldn't be necessary in case of succesful file launching.)
   837             // in that case. (This wouldn't be necessary in case of succesful file launching.)
   851             TFsEmailUiUtility::BringFsEmailToForeground();
   838             TFsEmailUiUtility::BringFsEmailToForeground();