mobilemessaging/unieditor/application/src/UniEditorAppUi.cpp
branchRCL_3
changeset 18 a9c7e5670d17
parent 17 caea42e26caa
child 21 c6838af47512
equal deleted inserted replaced
17:caea42e26caa 18:a9c7e5670d17
  1793             }
  1793             }
  1794         case MMsgEditorObserver::EMsgControlPointerEvent:
  1794         case MMsgEditorObserver::EMsgControlPointerEvent:
  1795             {
  1795             {
  1796             TPointerEvent* event = static_cast<TPointerEvent*>( aArg2 );
  1796             TPointerEvent* event = static_cast<TPointerEvent*>( aArg2 );
  1797             CMsgBaseControl* control = static_cast<CMsgBaseControl*>( aArg1 );
  1797             CMsgBaseControl* control = static_cast<CMsgBaseControl*>( aArg1 );
  1798             
  1798             TWsEvent* wsEvent = static_cast<TWsEvent*>(aArg2);
  1799             if ( event->iType == TPointerEvent::EButton1Down )
  1799             if ( event->iType == TPointerEvent::EButton1Down )
  1800                 {
  1800                 {
  1801                 iFocusedControl = control;
  1801                 iFocusedControl = control;
  1802                 if ( control && 
  1802                 if ( control && 
  1803                         ( control->ControlId() == EMsgComponentIdAudio ||
  1803                         ( control->ControlId() == EMsgComponentIdAudio ||
  1814                     }
  1814                     }
  1815                 iTapConsumed = EFalse;
  1815                 iTapConsumed = EFalse;
  1816                 }
  1816                 }
  1817             else if ( (!iTapConsumed) && (event->iType == TPointerEvent::EButton1Up) )
  1817             else if ( (!iTapConsumed) && (event->iType == TPointerEvent::EButton1Up) )
  1818                 {
  1818                 {
  1819                 iLongTapDetector->CancelAnimationL();
  1819                 iLongTapDetector->MonitorWsMessage(*wsEvent);
  1820                 iTapConsumed = ETrue;
  1820                 iTapConsumed = ETrue;
  1821                 if ( control && 
  1821                 if ( control && 
  1822                      iFocusedControl == control &&
  1822                      iFocusedControl == control &&
  1823                      ( control->ControlId() == EMsgComponentIdAudio ||
  1823                      ( control->ControlId() == EMsgComponentIdAudio ||
  1824                        control->ControlId() == EMsgComponentIdImage ||
  1824                        control->ControlId() == EMsgComponentIdImage ||
  7849         	  	//Reset the settings back, in case if any unicode/turkish chars were entered and erased 
  7849         	  	//Reset the settings back, in case if any unicode/turkish chars were entered and erased 
  7850             	       	//or if entry type is T9 method(multiple key presses to get different chars)
  7850             	       	//or if entry type is T9 method(multiple key presses to get different chars)
  7851     	               	plugin->SetEncodingSettings(EFalse, doc->AlternativeEncodingType(), doc->CharSetSupport());
  7851     	               	plugin->SetEncodingSettings(EFalse, doc->AlternativeEncodingType(), doc->CharSetSupport());
  7852                     }                
  7852                     }                
  7853                 //Call the plugin SMS adaptation API to get PDU Info
  7853                 //Call the plugin SMS adaptation API to get PDU Info
  7854                 plugin->GetNumPDUsL( inputBuff, numOfRemainingChars, numOfPDUs, unicodeMode, alternativeEncodingType);
  7854                TRAPD( err, plugin->GetNumPDUsL( inputBuff, numOfRemainingChars, numOfPDUs, unicodeMode, alternativeEncodingType) );
  7855                 
  7855                if ( err == KErrOverflow )
       
  7856                     {
       
  7857                             iSmsBodyLength = buffLength;
       
  7858                             delete iPrevBuffer;
       
  7859                             iPrevBuffer = editorTxt;
       
  7860                             return;                          
       
  7861                     }
       
  7862                 else if ( err != KErrNone )
       
  7863                     {
       
  7864                 	        User::Leave(err);
       
  7865                 	}
       
  7866                 	  				     
  7856                 //save current buffer 
  7867                 //save current buffer 
  7857                 delete iPrevBuffer;
  7868                 delete iPrevBuffer;
  7858                 iPrevBuffer = editorTxt;
  7869                 iPrevBuffer = editorTxt;
  7859                 iSettingsChanged = EFalse;
  7870                 iSettingsChanged = EFalse;
  7860                 }
  7871                 }