void CTermFepExt1::ConstructL() { // Need an initial state object of type CAknEdwinState CAknEdwinState *state = new (ELeave) CAknEdwinState(); state->SetObjectProvider(&iObjectProvider); state->SetFlags(EAknEditorFlagNoLRNavigation | EAknEditorFlagNoT9); state->SetDefaultCase(EAknEditorLowerCase); // FIXME: EAknEditorTextCase would work on S60 v3 but not earlier. // It's not very useful without T9 though. state->SetPermittedCases(EAknEditorLowerCase | EAknEditorUpperCase); iState = state; }
EXPORT_C MCoeFepAwareTextEditor_Extension1::CState* CAknNumericSecretEditor::CreateFepStateL() { CAknEdwinState* editorState = new(ELeave) CAknEdwinState(); editorState->SetFlags(EAknEditorFlagNoLRNavigation | EAknEditorFlagNoT9 | EAknEditorFlagLatinInputModesOnly); editorState->SetDefaultInputMode(EAknEditorNumericInputMode); editorState->SetCurrentInputMode(EAknEditorNumericInputMode); editorState->SetPermittedInputModes(EAknEditorNumericInputMode); editorState->SetDefaultCase(EAknEditorLowerCase); editorState->SetCurrentCase(EAknEditorLowerCase); editorState->SetPermittedCases(EAknEditorLowerCase|EAknEditorUpperCase); editorState->SetSpecialCharacterTableResourceId(0); editorState->SetNumericKeymap(EAknEditorPlainNumberModeKeymap); editorState->SetObjectProvider(this); return editorState; }