emailuis/emailui/src/ncscomposeview.cpp
branchRCL_3
changeset 8 e1b6206813b4
parent 4 e7aa27f58ae1
child 10 f5907b1a1053
equal deleted inserted replaced
4:e7aa27f58ae1 8:e1b6206813b4
    22 #include <StringLoader.h>
    22 #include <StringLoader.h>
    23 #include <txtrich.h>
    23 #include <txtrich.h>
    24 #include <AknWaitDialog.h>
    24 #include <AknWaitDialog.h>
    25 #include <MsgAttachmentUtils.h>
    25 #include <MsgAttachmentUtils.h>
    26 #include <featmgr.h>
    26 #include <featmgr.h>
    27 #include "CFSMailBox.h"
    27 #include "cfsmailbox.h"
    28 #include "CFSMailMessage.h"
    28 #include "cfsmailmessage.h"
    29 #include "CFSMailAddress.h"
    29 #include "cfsmailaddress.h"
    30 #include "CFSMailClient.h"
    30 #include "cfsmailclient.h"
    31 #include "CFSMailCommon.h"
    31 #include "cfsmailcommon.h"
    32 #include <csxhelp/cmail.hlp.hrh>
    32 #include <csxhelp/cmail.hlp.hrh>
    33 #include <akntoolbar.h>
    33 #include <akntoolbar.h>
    34 #include <akntoolbarextension.h>
    34 #include <akntoolbarextension.h>
    35 #include <AknUtils.h>
    35 #include <AknUtils.h>
    36 #include <FreestyleEmailUi.rsg>
    36 #include <FreestyleEmailUi.rsg>
    40 #include "ncscomposeview.h"
    40 #include "ncscomposeview.h"
    41 #include "ncscomposeviewcontainer.h"
    41 #include "ncscomposeviewcontainer.h"
    42 #include "ncsconstants.h"
    42 #include "ncsconstants.h"
    43 #include "ncsutility.h"
    43 #include "ncsutility.h"
    44 #include "ncsemailaddressobject.h"
    44 #include "ncsemailaddressobject.h"
    45 #include "FreestyleEmailCenRepHandler.h"
    45 #include "freestyleemailcenrephandler.h"
    46 #include "FreestyleEmailUi.hrh"
    46 #include "FreestyleEmailUi.hrh"
    47 #include "FreestyleEmailUiConstants.h"
    47 #include "FreestyleEmailUiConstants.h"
    48 #include "FreestyleEmailUiSendAttachmentsListControl.h"
    48 #include "FreestyleEmailUiSendAttachmentsListControl.h"
    49 #include "FreestyleEmailUiSendAttachmentsListVisualiser.h"
    49 #include "FreestyleEmailUiSendAttachmentsListVisualiser.h"
    50 #include "FreestyleEmailUiSendAttachmentsListModel.h"
    50 #include "FreestyleEmailUiSendAttachmentsListModel.h"
   406         iContainer->SetMskL();
   406         iContainer->SetMskL();
   407         iViewReady = ETrue;
   407         iViewReady = ETrue;
   408         Toolbar()->SetDimmed( EFalse );
   408         Toolbar()->SetDimmed( EFalse );
   409         RefreshToolbar();
   409         RefreshToolbar();
   410         }
   410         }
       
   411     TIMESTAMP( "Editor launched" );
   411     }
   412     }
   412 
   413 
   413 
   414 
   414 // -----------------------------------------------------------------------------
   415 // -----------------------------------------------------------------------------
   415 // CNcsComposeView::OfferToolbarEventL
   416 // CNcsComposeView::OfferToolbarEventL
   906                 DoSafeExit();
   907                 DoSafeExit();
   907                 }
   908                 }
   908                 break;
   909                 break;
   909             case ENcsCmdExit:
   910             case ENcsCmdExit:
   910                 {
   911                 {
       
   912                 TIMESTAMP( "Exit selected from editor" );
   911                 iAppUi.Exit();
   913                 iAppUi.Exit();
   912                 }
   914                 }
   913                 break;
   915                 break;
   914             default:
   916             default:
   915                 {
   917                 {
  1039 				    }
  1041 				    }
  1040 				}
  1042 				}
  1041                 break;
  1043                 break;
  1042     		case 1:
  1044     		case 1:
  1043     			{
  1045     			{
       
  1046     			TIMESTAMP( "Delete draft message selected in editor" ); 
  1044 				TRAPD( error, SaveToDraftsL( ETrue ) );
  1047 				TRAPD( error, SaveToDraftsL( ETrue ) );
  1045     			if ( KErrNone != error )
  1048     			if ( KErrNone != error )
  1046     			    {
  1049     			    {
  1047     			    }
  1050     			    }
  1048     			// for delete messages fake sync calls
  1051     			// for delete messages fake sync calls
  2027     if ( attachmentControl && attachmentControl->Model() )
  2030     if ( attachmentControl && attachmentControl->Model() )
  2028         {
  2031         {
  2029         attachmentControl->Model()->Clear();
  2032         attachmentControl->Model()->Clear();
  2030         }
  2033         }
  2031     ExitComposer();
  2034     ExitComposer();
       
  2035     TIMESTAMP( "Editor exited" );
  2032     }
  2036     }
  2033 
  2037 
  2034 // -----------------------------------------------------------------------------
  2038 // -----------------------------------------------------------------------------
  2035 // CNcsComposeView::DoOpenAttachmentList
  2039 // CNcsComposeView::DoOpenAttachmentList
  2036 // Opens the currently focused attachment
  2040 // Opens the currently focused attachment