2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: An editor for a numeric password
19 #if !defined(__AKNNUMSECED_H__)
20 #define __AKNNUMSECED_H__
23 #if !defined(__EIKBCTRL_H__)
32 * An editor for a numeric password.
33 * Implementation of Avkon numeric secret editor which expands
34 * @c CEikSecretEditor to better cope with numeric passwords e.g. PINs.
36 * @since Series 60 0.9
38 class CAknNumericSecretEditor : public CEikSecretEditor
42 * C++ default constructor.
44 IMPORT_C CAknNumericSecretEditor();
49 ~CAknNumericSecretEditor();
51 public: // from CCoeControl
54 * From @c CCoeControl. Gets the control's input capabilities.
55 * Gets input capabilities that describe which forms of text input are
56 * consumed by a control.
58 * If this function is overrided in a subclass, the subclass should
59 * obtain this class' InputCapabilities' object provider through
60 * TCoeInputCapabilities::ObjectProvider() and set that as a part of
61 * the subclass' InputCapabilities object provider chain to ensure
62 * maximum functionality.
64 * @return The control's input capabilities.
66 IMPORT_C virtual TCoeInputCapabilities InputCapabilities() const;
67 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
69 // methods to enable CAknNumericSecretEditor to inherit from
73 * Appends a character to the password.
74 * @param aKeyCode A numeric character to be appended to the password.
76 IMPORT_C virtual void AppendCharacterL( TInt aKeyCode );
79 * Creates a FEP state handler (@c CAknEdwinState ) with default values.
80 * @return A Pointer to a FEP state handler.
82 IMPORT_C virtual MCoeFepAwareTextEditor_Extension1::CState* CreateFepStateL();
83 private: // from CCoeControl
84 IMPORT_C void Reserved_1();
85 IMPORT_C void Reserved_2();
90 IMPORT_C void* ExtensionInterface( TUid aInterface );
92 private: // from MCoeFepAwareTextEditor
93 IMPORT_C void MCoeFepAwareTextEditor_Reserved_2();
94 private: // from MCoeFepAwareTextEditor_Extension1
95 IMPORT_C virtual void MCoeFepAwareTextEditor_Extension1_Reserved_2();
96 IMPORT_C virtual void MCoeFepAwareTextEditor_Extension1_Reserved_3();
97 IMPORT_C virtual void MCoeFepAwareTextEditor_Extension1_Reserved_4();
102 #endif // AKNNUMSECED_H