diff -r fcdfafb36fe7 -r aecbbf00d063 uifw/AvKon/src/AknPhoneNumberEditor.cpp --- a/uifw/AvKon/src/AknPhoneNumberEditor.cpp Thu Aug 19 10:11:06 2010 +0300 +++ b/uifw/AvKon/src/AknPhoneNumberEditor.cpp Tue Aug 31 15:28:30 2010 +0300 @@ -375,7 +375,7 @@ } if ( cousorChanged ) { - ReportAknEdStateEvent( MAknEdStateObserver::EAknCursorPositionChanged ); + ReportAknEdStateEventL( MAknEdStateObserver::EAknCursorPositionChanged ); } // see if we want to remember the old cursor X position if ( targetPosUsed ) @@ -421,7 +421,7 @@ } if ( ! IsFocused() ) { - ReportAknEdStateEvent( MAknEdStateObserver::EAknSyncEdwinState ); + TRAP_IGNORE( ReportAknEdStateEventL( MAknEdStateObserver::EAknSyncEdwinState ) ); } if ( aDrawNow ) DrawNow(); @@ -500,7 +500,7 @@ { iModel->SetRealCursorPosition(aCursorPos); iModel->SetAnchorPosition( aAnchorPos ); - ReportAknEdStateEvent( + ReportAknEdStateEventL( MAknEdStateObserver::EAknCursorPositionChanged ); } @@ -510,7 +510,7 @@ iModel->SetRealCursorPosition( aCursorPos ); if ( aSelect ) iModel->SetAnchorPosition( anchor ); - ReportAknEdStateEvent( + ReportAknEdStateEventL( MAknEdStateObserver::EAknCursorPositionChanged ); } @@ -644,7 +644,7 @@ iModel->SetRealCursorPosition( iModel->Uncompensate( aCursorSelection.iCursorPos ) ); iModel->SetAnchorPosition( iModel->Uncompensate( aCursorSelection.iAnchorPos ) ); - ReportAknEdStateEvent( + ReportAknEdStateEventL( MAknEdStateObserver::EAknCursorPositionChanged ); DrawNow(); } @@ -908,7 +908,7 @@ if ( feedback ) { - feedback->InstantFeedback( this, ETouchFeedbackEdit ); + feedback->InstantFeedback( this, ETouchFeedbackEditor ); } } //cancel previous selection @@ -1081,9 +1081,7 @@ // check if the characters are allowed, if one character is not allowed, // it will not be pasted into phone number editor - CAknExtendedInputCapabilities * pCapabilities(iExtension->iExtendedInputCapabilities); - if ( fepState->CurrentInputMode() != EAknEditorTextInputMode && pCapabilities - && pCapabilities->EditorType() != CAknExtendedInputCapabilities::EHybridAlphaNumericEditor ) + if ( fepState->CurrentInputMode() != EAknEditorTextInputMode ) { TInt pos = 0; TInt index = 0; @@ -1126,19 +1124,6 @@ // EXPORT_C void CAknPhoneNumberEditor::CcpuPasteL() { - // When we paste the buffer to phone number editor, we must get the buffer from clipboard first - // and then insert buffer to phone number editor. As the main job of CcpuCanPaste() is getting and - // checking the buffer in clipboard, so we must call CcpuCanPaste() first. - // If iExtension->iPasteText is not NULL, it means CcpuCanPaste() has been called before and the - // buffer in clipboard is valid. No need to call it once again. - if ( !iExtension->iPasteText ) - { - // If the return value of CcpuCanPaste is EFalse, iExtension->iPasteText must be NULL, - // else if the return value of CcpuCanPaste is ETure, iExtension->iPasteText must not be NULL. - // So we don't need to check if the return value is ETure or EFalse, - // we will check iExtension->iPasteText instead of that. - CcpuCanPaste(); - } if ( iExtension->iPasteText ) { iModel->Paste( iExtension->iPasteText->Des() ); @@ -1266,8 +1251,8 @@ TUint cap = iExtension->iExtendedInputCapabilities->Capabilities(); cap &= ~CAknExtendedInputCapabilities::EInputEditorDisableVKB; iExtension->iExtendedInputCapabilities->SetCapabilities( cap ); - ReportAknEdStateEvent( - MAknEdStateObserver::EAknActivatePenInputRequest ); + TRAP_IGNORE( ReportAknEdStateEventL( + MAknEdStateObserver::EAknActivatePenInputRequest ) ); } // -------------------------------------------------------------------------- @@ -1279,14 +1264,14 @@ TUint cap = iExtension->iExtendedInputCapabilities->Capabilities(); cap |= CAknExtendedInputCapabilities::EInputEditorDisableVKB; iExtension->iExtendedInputCapabilities->SetCapabilities( cap ); - ReportAknEdStateEvent( MAknEdStateObserver::EAknClosePenInputRequest ); + ReportAknEdStateEventL( MAknEdStateObserver::EAknClosePenInputRequest ); } // -------------------------------------------------------------------------- // CAknPhoneNumberEditor::ReportAknEdStateEventL // -------------------------------------------------------------------------- // -void CAknPhoneNumberEditor::ReportAknEdStateEvent( +void CAknPhoneNumberEditor::ReportAknEdStateEventL( MAknEdStateObserver::EAknEdwinStateEvent aStateEvent ) { CAknEdwinState* edwinState = STATIC_CAST( CAknEdwinState*,State(KNullUid) ); @@ -1309,17 +1294,5 @@ return edwinState->Flags(); } -// -------------------------------------------------------------------------- -// CAknPhoneNumberEditor::MakeVisible -// -------------------------------------------------------------------------- -// -void CAknPhoneNumberEditor::MakeVisible(TBool aVisible) - { - CCoeControl::MakeVisible(aVisible); - if ( !aVisible ) - { - CloseVKB(); - } - } // End of file