equal
deleted
inserted
replaced
2669 |
2669 |
2670 // ----------------------------------------------------------------------------- |
2670 // ----------------------------------------------------------------------------- |
2671 // CNcsComposeView::FetchLogicComplete |
2671 // CNcsComposeView::FetchLogicComplete |
2672 // ----------------------------------------------------------------------------- |
2672 // ----------------------------------------------------------------------------- |
2673 // |
2673 // |
2674 void CNcsComposeView::FetchLogicComplete( TComposerFetchState /*aState*/, TInt aError ) |
2674 TBool CNcsComposeView::FetchLogicComplete( TComposerFetchState /*aState*/, TInt aError ) |
2675 { |
2675 { |
2676 FUNC_LOG; |
2676 FUNC_LOG; |
|
2677 TBool result = EFalse; |
2677 if ( iFirstStartCompleted ) // Safety |
2678 if ( iFirstStartCompleted ) // Safety |
2678 { |
2679 { |
2679 if ( !aError ) |
2680 if ( !aError ) |
2680 { |
2681 { |
2681 TRAP( aError, InitReplyOrForwardUiL() ); |
2682 TRAP( aError, InitReplyOrForwardUiL() ); |
2684 else |
2685 else |
2685 { |
2686 { |
2686 // something went wrong |
2687 // something went wrong |
2687 DoSafeExit(ENoSave); |
2688 DoSafeExit(ENoSave); |
2688 iMailFetchingErrCode = aError; |
2689 iMailFetchingErrCode = aError; |
|
2690 result = ETrue; |
2689 } |
2691 } |
2690 } |
2692 } |
2691 if ( iFetchWaitDialog && !iFetchDialogCancelled ) |
2693 if ( iFetchWaitDialog && !iFetchDialogCancelled ) |
2692 { |
2694 { |
2693 TRAP_IGNORE(iFetchWaitDialog->ProcessFinishedL()); |
2695 TRAP_IGNORE(iFetchWaitDialog->ProcessFinishedL()); |
2694 iFetchWaitDialog = NULL; |
2696 iFetchWaitDialog = NULL; |
2695 } |
2697 } |
|
2698 return result; |
2696 } |
2699 } |
2697 |
2700 |
2698 // ----------------------------------------------------------------------------- |
2701 // ----------------------------------------------------------------------------- |
2699 // CNcsComposeView::ExitComposer |
2702 // CNcsComposeView::ExitComposer |
2700 // ----------------------------------------------------------------------------- |
2703 // ----------------------------------------------------------------------------- |