author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
/* |
williamr@2 | 2 |
* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 3 |
* All rights reserved. |
williamr@2 | 4 |
* This component and the accompanying materials are made available |
williamr@4 | 5 |
* under the terms of "Eclipse Public License v1.0" |
williamr@2 | 6 |
* which accompanies this distribution, and is available |
williamr@4 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@2 | 8 |
* |
williamr@2 | 9 |
* Initial Contributors: |
williamr@2 | 10 |
* Nokia Corporation - initial contribution. |
williamr@2 | 11 |
* |
williamr@2 | 12 |
* Contributors: |
williamr@2 | 13 |
* |
williamr@2 | 14 |
* Description: An editor for a numeric password |
williamr@2 | 15 |
* |
williamr@2 | 16 |
*/ |
williamr@2 | 17 |
|
williamr@2 | 18 |
|
williamr@2 | 19 |
#if !defined(__AKNNUMSECED_H__) |
williamr@2 | 20 |
#define __AKNNUMSECED_H__ |
williamr@2 | 21 |
|
williamr@2 | 22 |
// INCLUDES |
williamr@2 | 23 |
#if !defined(__EIKBCTRL_H__) |
williamr@2 | 24 |
#include <eikbctrl.h> |
williamr@2 | 25 |
#endif |
williamr@2 | 26 |
|
williamr@2 | 27 |
#include <eikseced.h> |
williamr@2 | 28 |
|
williamr@2 | 29 |
// CLASS DECLARATION |
williamr@2 | 30 |
|
williamr@2 | 31 |
/** |
williamr@2 | 32 |
* An editor for a numeric password. |
williamr@2 | 33 |
* Implementation of Avkon numeric secret editor which expands |
williamr@2 | 34 |
* @c CEikSecretEditor to better cope with numeric passwords e.g. PINs. |
williamr@2 | 35 |
* |
williamr@2 | 36 |
* @since Series 60 0.9 |
williamr@2 | 37 |
*/ |
williamr@2 | 38 |
class CAknNumericSecretEditor : public CEikSecretEditor |
williamr@2 | 39 |
{ |
williamr@2 | 40 |
public: |
williamr@2 | 41 |
/** |
williamr@2 | 42 |
* C++ default constructor. |
williamr@2 | 43 |
*/ |
williamr@2 | 44 |
IMPORT_C CAknNumericSecretEditor(); |
williamr@2 | 45 |
|
williamr@2 | 46 |
/** |
williamr@2 | 47 |
* Destructor. |
williamr@2 | 48 |
*/ |
williamr@2 | 49 |
~CAknNumericSecretEditor(); |
williamr@2 | 50 |
|
williamr@2 | 51 |
public: // from CCoeControl |
williamr@2 | 52 |
|
williamr@2 | 53 |
/** |
williamr@2 | 54 |
* From @c CCoeControl. Gets the control's input capabilities. |
williamr@2 | 55 |
* Gets input capabilities that describe which forms of text input are |
williamr@2 | 56 |
* consumed by a control. |
williamr@2 | 57 |
* |
williamr@2 | 58 |
* If this function is overrided in a subclass, the subclass should |
williamr@2 | 59 |
* obtain this class' InputCapabilities' object provider through |
williamr@2 | 60 |
* TCoeInputCapabilities::ObjectProvider() and set that as a part of |
williamr@2 | 61 |
* the subclass' InputCapabilities object provider chain to ensure |
williamr@2 | 62 |
* maximum functionality. |
williamr@2 | 63 |
* |
williamr@2 | 64 |
* @return The control's input capabilities. |
williamr@2 | 65 |
*/ |
williamr@2 | 66 |
IMPORT_C virtual TCoeInputCapabilities InputCapabilities() const; |
williamr@2 | 67 |
IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
williamr@2 | 68 |
protected: |
williamr@2 | 69 |
// methods to enable CAknNumericSecretEditor to inherit from |
williamr@2 | 70 |
// CEikSecretEditor |
williamr@2 | 71 |
|
williamr@2 | 72 |
/** |
williamr@2 | 73 |
* Appends a character to the password. |
williamr@2 | 74 |
* @param aKeyCode A numeric character to be appended to the password. |
williamr@2 | 75 |
*/ |
williamr@2 | 76 |
IMPORT_C virtual void AppendCharacterL( TInt aKeyCode ); |
williamr@2 | 77 |
|
williamr@2 | 78 |
/** |
williamr@2 | 79 |
* Creates a FEP state handler (@c CAknEdwinState ) with default values. |
williamr@2 | 80 |
* @return A Pointer to a FEP state handler. |
williamr@2 | 81 |
*/ |
williamr@2 | 82 |
IMPORT_C virtual MCoeFepAwareTextEditor_Extension1::CState* CreateFepStateL(); |
williamr@2 | 83 |
private: // from CCoeControl |
williamr@2 | 84 |
IMPORT_C void Reserved_1(); |
williamr@2 | 85 |
IMPORT_C void Reserved_2(); |
williamr@2 | 86 |
private: |
williamr@2 | 87 |
/** |
williamr@2 | 88 |
* From CAknControl |
williamr@2 | 89 |
*/ |
williamr@2 | 90 |
IMPORT_C void* ExtensionInterface( TUid aInterface ); |
williamr@2 | 91 |
|
williamr@2 | 92 |
private: // from MCoeFepAwareTextEditor |
williamr@2 | 93 |
IMPORT_C void MCoeFepAwareTextEditor_Reserved_2(); |
williamr@2 | 94 |
private: // from MCoeFepAwareTextEditor_Extension1 |
williamr@2 | 95 |
IMPORT_C virtual void MCoeFepAwareTextEditor_Extension1_Reserved_2(); |
williamr@2 | 96 |
IMPORT_C virtual void MCoeFepAwareTextEditor_Extension1_Reserved_3(); |
williamr@2 | 97 |
IMPORT_C virtual void MCoeFepAwareTextEditor_Extension1_Reserved_4(); |
williamr@2 | 98 |
private: // Data |
williamr@2 | 99 |
TInt iSpare; |
williamr@2 | 100 |
}; |
williamr@2 | 101 |
|
williamr@2 | 102 |
#endif // AKNNUMSECED_H |
williamr@2 | 103 |
|
williamr@2 | 104 |
// End of File |