diff -r 000000000000 -r 2f259fa3e83a uifw/AvKon/src/Aknnumseced.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uifw/AvKon/src/Aknnumseced.cpp Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,124 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +// INCLUDE FILES +#include +#include +#include +#include +#include +#include + +#define KSecretChar '*' +#define KSecretCharAsString "*" + + + +// ---------------------------------------------------------------------------- +// CAknNumericSecretEditor::CAknNumericSecretEditor() +// ---------------------------------------------------------------------------- +// +EXPORT_C CAknNumericSecretEditor::CAknNumericSecretEditor() + { + } + +CAknNumericSecretEditor::~CAknNumericSecretEditor() + { + } + +EXPORT_C void CAknNumericSecretEditor::AppendCharacterL( TInt aKeyCode ) + { + CEikSecretEditor::AppendCharacterL( aKeyCode ); + } + +// ---------------------------------------------------------------------------- +// CAknNumericSecretEditor::InputCapabilities() const +// Sets the TCoeInputCapabilities. +// ---------------------------------------------------------------------------- +// +EXPORT_C TCoeInputCapabilities CAknNumericSecretEditor::InputCapabilities() const + { + TCoeInputCapabilities inputCaps( + TCoeInputCapabilities::EWesternNumericIntegerPositive| + TCoeInputCapabilities::ESecretText| + TCoeInputCapabilities::ENavigation, + const_cast( this ), + NULL ); + + inputCaps.SetObjectProvider( + CEikSecretEditor::InputCapabilities().ObjectProvider() ); + + return inputCaps; + } + +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; + } + +EXPORT_C void CAknNumericSecretEditor::HandlePointerEventL(const TPointerEvent& aPointerEvent) + { + CEikSecretEditor::HandlePointerEventL(aPointerEvent); + } + +EXPORT_C void* CAknNumericSecretEditor::ExtensionInterface( TUid /*aInterface*/ ) + { + return NULL; + } + +EXPORT_C void CAknNumericSecretEditor::Reserved_1() + {} + +// ---------------------------------------------------------------------------- +// CAknNumericSecretEditor::Reserved_2() +// ---------------------------------------------------------------------------- +// +EXPORT_C void CAknNumericSecretEditor::Reserved_2() + {} + + +EXPORT_C void CAknNumericSecretEditor::MCoeFepAwareTextEditor_Reserved_2() + { + } + +EXPORT_C void CAknNumericSecretEditor::MCoeFepAwareTextEditor_Extension1_Reserved_2() + { + } + +EXPORT_C void CAknNumericSecretEditor::MCoeFepAwareTextEditor_Extension1_Reserved_3() + { + } + +EXPORT_C void CAknNumericSecretEditor::MCoeFepAwareTextEditor_Extension1_Reserved_4() + { + } + +// End of File