diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/mw/aknnumseced.h --- a/epoc32/include/mw/aknnumseced.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/mw/aknnumseced.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,104 @@ -aknnumseced.h +/* +* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* 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 +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: An editor for a numeric password +* +*/ + + +#if !defined(__AKNNUMSECED_H__) +#define __AKNNUMSECED_H__ + +// INCLUDES +#if !defined(__EIKBCTRL_H__) +#include +#endif + +#include + +// CLASS DECLARATION + +/** +* An editor for a numeric password. +* Implementation of Avkon numeric secret editor which expands +* @c CEikSecretEditor to better cope with numeric passwords e.g. PINs. +* +* @since Series 60 0.9 +*/ +class CAknNumericSecretEditor : public CEikSecretEditor + { +public: + /** + * C++ default constructor. + */ + IMPORT_C CAknNumericSecretEditor(); + + /** + * Destructor. + */ + ~CAknNumericSecretEditor(); + +public: // from CCoeControl + + /** + * From @c CCoeControl. Gets the control's input capabilities. + * Gets input capabilities that describe which forms of text input are + * consumed by a control. + * + * If this function is overrided in a subclass, the subclass should + * obtain this class' InputCapabilities' object provider through + * TCoeInputCapabilities::ObjectProvider() and set that as a part of + * the subclass' InputCapabilities object provider chain to ensure + * maximum functionality. + * + * @return The control's input capabilities. + */ + IMPORT_C virtual TCoeInputCapabilities InputCapabilities() const; + IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); +protected: + // methods to enable CAknNumericSecretEditor to inherit from + // CEikSecretEditor + + /** + * Appends a character to the password. + * @param aKeyCode A numeric character to be appended to the password. + */ + IMPORT_C virtual void AppendCharacterL( TInt aKeyCode ); + + /** + * Creates a FEP state handler (@c CAknEdwinState ) with default values. + * @return A Pointer to a FEP state handler. + */ + IMPORT_C virtual MCoeFepAwareTextEditor_Extension1::CState* CreateFepStateL(); +private: // from CCoeControl + IMPORT_C void Reserved_1(); + IMPORT_C void Reserved_2(); +private: + /** + * From CAknControl + */ + IMPORT_C void* ExtensionInterface( TUid aInterface ); + +private: // from MCoeFepAwareTextEditor + IMPORT_C void MCoeFepAwareTextEditor_Reserved_2(); +private: // from MCoeFepAwareTextEditor_Extension1 + IMPORT_C virtual void MCoeFepAwareTextEditor_Extension1_Reserved_2(); + IMPORT_C virtual void MCoeFepAwareTextEditor_Extension1_Reserved_3(); + IMPORT_C virtual void MCoeFepAwareTextEditor_Extension1_Reserved_4(); +private: // Data + TInt iSpare; + }; + +#endif // AKNNUMSECED_H + +// End of File