mobilemessaging/unieditor/application/src/UniEditorProcessImageOperation.cpp
branchRCL_3
changeset 66 fc3320e39880
parent 60 7fdbb852d323
child 77 da6ac9d688df
equal deleted inserted replaced
60:7fdbb852d323 66:fc3320e39880
    96 CUniEditorProcessImageOperation::CUniEditorProcessImageOperation(
    96 CUniEditorProcessImageOperation::CUniEditorProcessImageOperation(
    97         MUniEditorOperationObserver& aObserver,
    97         MUniEditorOperationObserver& aObserver,
    98         CUniEditorDocument& aDocument,
    98         CUniEditorDocument& aDocument,
    99         RFs& aFs ) :
    99         RFs& aFs ) :
   100     CUniEditorOperation( aObserver, aDocument, aFs, EUniEditorOperationProcessImage ),
   100     CUniEditorOperation( aObserver, aDocument, aFs, EUniEditorOperationProcessImage ),
   101     iNewAttaId( KMsvNullIndexEntryId ),
   101     iNewAttaId( KMsvNullIndexEntryId )
   102     iOptimizedFlow(EFalse)
       
   103     {
   102     {
   104     }
   103     }
   105 
   104 
   106 // ---------------------------------------------------------
   105 // ---------------------------------------------------------
   107 // CUniEditorProcessImageOperation::ConstructL
   106 // CUniEditorProcessImageOperation::ConstructL
   257 // CUniEditorProcessImageOperation::DoStartProcessL
   256 // CUniEditorProcessImageOperation::DoStartProcessL
   258 // ---------------------------------------------------------
   257 // ---------------------------------------------------------
   259 //
   258 //
   260 void CUniEditorProcessImageOperation::DoStartProcessL()
   259 void CUniEditorProcessImageOperation::DoStartProcessL()
   261     {
   260     {
   262     
       
   263     if(iOptimizedFlow)
       
   264         {
       
   265          iObserver.EditorOperationEvent( EUniEditorOperationProcessImage,
       
   266                                       EUniEditorOperationPartialComplete );   
       
   267          iOptimizedFlow = EFalse;
       
   268         }
       
   269     CreateEmptyAttachmentL();
   261     CreateEmptyAttachmentL();
   270     
   262     
   271     if ( !iImageProcessor )
   263     if ( !iImageProcessor )
   272         {
   264         {
   273         iImageProcessor = new( ELeave )CUniImageProcessor( this );
   265         iImageProcessor = new( ELeave )CUniImageProcessor( this );
   652     // ownership transferred
   644     // ownership transferred
   653     CMsgImageInfo* tempInfo = iNewImageInfo;
   645     CMsgImageInfo* tempInfo = iNewImageInfo;
   654     iNewImageInfo = NULL;
   646     iNewImageInfo = NULL;
   655     return tempInfo;
   647     return tempInfo;
   656     }
   648     }
   657 
   649     
   658 // ---------------------------------------------------------
       
   659 // CUniEditorProcessImageOperation::SetOptimizedFlow
       
   660 // ---------------------------------------------------------
       
   661 //
       
   662 void CUniEditorProcessImageOperation::SetOptimizedFlow(TBool aOptimizedFlow)
       
   663     {
       
   664     iOptimizedFlow =  aOptimizedFlow;
       
   665     }
       
   666 // End of file
   650 // End of file