uifw/AvKon/src/Aknnumseced.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <Aknnumseced.h>
       
    21 #include <AknPanic.h>
       
    22 #include <barsread.h>
       
    23 #include <eikenv.h>
       
    24 #include <aknedsts.h>
       
    25 #include <gulcolor.h>
       
    26 
       
    27 #define KSecretChar '*'
       
    28 #define KSecretCharAsString "*"
       
    29 
       
    30 
       
    31 
       
    32 // ----------------------------------------------------------------------------
       
    33 // CAknNumericSecretEditor::CAknNumericSecretEditor()
       
    34 // ----------------------------------------------------------------------------
       
    35 //
       
    36 EXPORT_C CAknNumericSecretEditor::CAknNumericSecretEditor()
       
    37     {
       
    38     }
       
    39 
       
    40 CAknNumericSecretEditor::~CAknNumericSecretEditor()
       
    41     {
       
    42     }
       
    43 
       
    44 EXPORT_C void CAknNumericSecretEditor::AppendCharacterL( TInt aKeyCode )
       
    45     {
       
    46     CEikSecretEditor::AppendCharacterL( aKeyCode );
       
    47     }
       
    48 
       
    49 // ----------------------------------------------------------------------------
       
    50 // CAknNumericSecretEditor::InputCapabilities() const
       
    51 // Sets the TCoeInputCapabilities.
       
    52 // ----------------------------------------------------------------------------
       
    53 //
       
    54 EXPORT_C TCoeInputCapabilities CAknNumericSecretEditor::InputCapabilities() const
       
    55     {
       
    56     TCoeInputCapabilities inputCaps( 
       
    57         TCoeInputCapabilities::EWesternNumericIntegerPositive|
       
    58         TCoeInputCapabilities::ESecretText|
       
    59         TCoeInputCapabilities::ENavigation,
       
    60         const_cast<CAknNumericSecretEditor*>( this ),
       
    61         NULL );
       
    62         
       
    63     inputCaps.SetObjectProvider( 
       
    64         CEikSecretEditor::InputCapabilities().ObjectProvider() );
       
    65     
       
    66     return inputCaps;
       
    67     }
       
    68 
       
    69 EXPORT_C MCoeFepAwareTextEditor_Extension1::CState* CAknNumericSecretEditor::CreateFepStateL()
       
    70     {
       
    71     CAknEdwinState* editorState = new(ELeave) CAknEdwinState();
       
    72         
       
    73     editorState->SetFlags(EAknEditorFlagNoLRNavigation | EAknEditorFlagNoT9 | EAknEditorFlagLatinInputModesOnly);
       
    74     editorState->SetDefaultInputMode(EAknEditorNumericInputMode);
       
    75     editorState->SetCurrentInputMode(EAknEditorNumericInputMode);
       
    76     editorState->SetPermittedInputModes(EAknEditorNumericInputMode);
       
    77     editorState->SetDefaultCase(EAknEditorLowerCase);
       
    78     editorState->SetCurrentCase(EAknEditorLowerCase);
       
    79     editorState->SetPermittedCases(EAknEditorLowerCase|EAknEditorUpperCase);
       
    80     editorState->SetSpecialCharacterTableResourceId(0);
       
    81     editorState->SetNumericKeymap(EAknEditorPlainNumberModeKeymap);
       
    82 	editorState->SetObjectProvider(this);
       
    83 
       
    84     return editorState;
       
    85     }
       
    86 
       
    87 EXPORT_C void CAknNumericSecretEditor::HandlePointerEventL(const TPointerEvent& aPointerEvent) 
       
    88     { 
       
    89     CEikSecretEditor::HandlePointerEventL(aPointerEvent); 
       
    90     }
       
    91 
       
    92 EXPORT_C void* CAknNumericSecretEditor::ExtensionInterface( TUid /*aInterface*/ ) 
       
    93     { 
       
    94     return NULL;
       
    95     }
       
    96 
       
    97 EXPORT_C void CAknNumericSecretEditor::Reserved_1()
       
    98     {}
       
    99 
       
   100 // ----------------------------------------------------------------------------
       
   101 // CAknNumericSecretEditor::Reserved_2()
       
   102 // ----------------------------------------------------------------------------
       
   103 //
       
   104 EXPORT_C void CAknNumericSecretEditor::Reserved_2()
       
   105     {}
       
   106 
       
   107 
       
   108 EXPORT_C void CAknNumericSecretEditor::MCoeFepAwareTextEditor_Reserved_2()
       
   109 	{
       
   110 	}
       
   111 
       
   112 EXPORT_C void CAknNumericSecretEditor::MCoeFepAwareTextEditor_Extension1_Reserved_2()
       
   113 	{
       
   114 	}
       
   115 
       
   116 EXPORT_C void CAknNumericSecretEditor::MCoeFepAwareTextEditor_Extension1_Reserved_3()
       
   117 	{
       
   118 	}
       
   119 
       
   120 EXPORT_C void CAknNumericSecretEditor::MCoeFepAwareTextEditor_Extension1_Reserved_4()
       
   121 	{
       
   122 	}
       
   123 
       
   124 //  End of File