API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib uiklaf.lib form.lib
Required Capabilities
None
#include <eikseced.h>
Inherits CEikBorderedControl.
Inherited by CAknNumericSecretEditor.
The editor is suitable for editing confidential information such as a password. You can paste to the editor but no other clipboard functions are available.
The editor has an associated resource struct SECRETED and control factory identifier EEikCtSecretEd.
Public Types |
|
enum | { EMaxSecEdBufLength = 32, EMaxSecEdSecArrayLength = 255 } |
Public Member Functions |
|
IMPORT_C | CEikSecretEditor () |
Default constructor. |
|
IMPORT_C | ~CEikSecretEditor () |
Destructor. |
|
virtual IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
Second-phase construction from a resource file. |
|
virtual IMPORT_C TSize | MinimumSize () |
Gets the editor's minimum size in pixels. |
|
virtual IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
Responds to key presses. |
|
virtual IMPORT_C void | GetColorUseListL (CArrayFix< TCoeColorUse > &aColorUseList) const |
Gets the list of logical colours used to draw the editor. |
|
virtual IMPORT_C void | HandleResourceChange (TInt aType) |
Handles a change to the editor's resources. |
|
virtual IMPORT_C TCoeInputCapabilities | InputCapabilities () const |
Gets the editor's input capabilities. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
IMPORT_C void | GetText (TDes &aText) const |
Gets the editor's text string. |
|
virtual IMPORT_C void | SetText (const TDesC &aText) |
Set the contents of the character buffer. |
|
virtual IMPORT_C void | InitializeDisplay (TInt aNumberOfChars) |
Set the initial display of the secret editor. |
|
IMPORT_C void | Reset () |
Clears the editor's text string removing any trace of it from memory. |
|
IMPORT_C void | SetMaxLength (TInt aMaxLength) |
Set the maximum length of the editor. |
|
IMPORT_C void | AknSetFont (const CFont &aFont) |
Sets the font that is used to draw the text in this editor. |
|
IMPORT_C void | AknSetAlignment (const CGraphicsContext::TTextAlign &aAlign) |
Sets the alignment of the editor. |
|
IMPORT_C void | SetDefaultInputMode (TInt aInputMode) |
Changes default and current input mode of a secret editor. |
|
IMPORT_C TInt | MaxLength () const |
Returns the current maximum length of the internal buffer. |
|
IMPORT_C const TDesC & | Buffer () const |
Access method for getting at the buffer without copying out from it. |
|
IMPORT_C void | RevealSecretText (TBool aReveal) |
Method to reveal (or hide) the currently input editor contents. |
|
IMPORT_C void | SetSkinBackgroundControlContextL (MAknsControlContext *aContext) |
Set the skin control context to be used with this secret editor. |
|
void | StartTimer () |
IMPORT_C void | SetSkinTextColorL (TInt aAknSkinIDForTextColor, TInt aAknSkinIdForBgColor=KErrNotFound) |
Sets the colors for text and background as skin IDs. |
|
Protected Member Functions |
|
virtual IMPORT_C void | AppendCharacterL (TInt aKeyCode) |
Appends a character to the editor. |
|
virtual IMPORT_C void | Update () |
Updates and redraws the editor. |
|
void | InsertSecretChar () |
IMPORT_C void | SizeChanged () |
Responds to changes to the size and position of the contents of this control. |
|
Protected Attributes |
|
HBufC * | iSecCharArr |
TInt | iSecPos |
TSecEdBuf | iBuf |
TInt | iMaxLen |
TInt | iCharWidth |
TInt | iAscent |
TBool | iBufferFull |
|
|
|
Default constructor. This constructs a editor with a border type of TGulBorder::ESingleGray. This function should be used as the first stage in two stage construction, followed by a call to either ConstructFromResourceL() or SetMaxLength(). |
|
Destructor. |
|
Sets the alignment of the editor.
|
|
Sets the font that is used to draw the text in this editor.
|
|
Appends a character to the editor.
Reimplemented in CAknNumericSecretEditor. |
|
Access method for getting at the buffer without copying out from it.
|
|
Second-phase construction from a resource file. This function reads the number of characters which may be entered by the user into the editor from a SECRETED resource. You should call either this function or SetMaxLength() before drawing the editor and offering key events, otherwise the editor will not accept text input.
|
|
Gets the list of logical colours used to draw the editor. Overrides CCoeControl::GetColorUseListL().
Reimplemented from CEikBorderedControl. |
|
Gets the editor's text string. This may be called from the container class when the model data should be updated according to the text contained in the editor.
|
|
From Handles pointer events.
Reimplemented from CEikBorderedControl. Reimplemented in CAknNumericSecretEditor. |
|
Handles a change to the editor's resources. The types of resources handled are those which are shared across the environment, e.g. colours or fonts. Calls CEikBorderedControl::HandleResourceChange().
Reimplemented from CEikBorderedControl. |
|
Set the initial display of the secret editor. Calling this routine doesn't affect the actual character buffer.
|
|
Gets the editor's input capabilities. Overrides CCoeControl::InputCapabilities(). 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.
Reimplemented in CAknNumericSecretEditor. |
|
|
Returns the current maximum length of the internal buffer.
|
|
Gets the editor's minimum size in pixels. Overrides CCoeControl::MinimumSize().
|
|
Responds to key presses. Overrides CCoeControl::OfferKeyEventL().
|
|
Clears the editor's text string removing any trace of it from memory. |
|
Method to reveal (or hide) the currently input editor contents.
|
|
Changes default and current input mode of a secret editor. By default input mode in the secret editor is alpha input mode (EAknEditorSecretAlphaInputMode). By using this method the default input mode can be changed to numeric input mode (EAknEditorNumericInputMode).
|
|
Set the maximum length of the editor. This is the maximum number of characters which may be entered by the user into the editor.
|
|
Set the skin control context to be used with this secret editor.
If this method is not called, the control context available through MOP (if any) is used. If
|
|
Sets the colors for text and background as skin IDs.
|
|
Set the contents of the character buffer.
|
|
Responds to changes to the size and position of the contents of this control. Overrides CCoeControl::SizeChanged(). |
|
|
Updates and redraws the editor. |
|
|
|
|
|
|
|