API published in: S60 1st Ed
Link against: avkon.lib
Required Capabilities
None
#include <aknpasswordsettingpage.h>
Inherits CAknSettingPage.
Inherited by CAknAlphaPasswordSettingPage, and CAknNumericPasswordSettingPage.
All contained-editor-specific stuff should be in the derived classes.
THIS CLASS IS NOT INSTANTIATABLE
Public Types |
|
enum | TAknPasswordMatchingMode { ECaseSensitive, ECaseInsensitive } |
Modes to be used for the matching of password texts. More... |
|
Public Member Functions |
|
IMPORT_C | CAknPasswordSettingPage (TInt aResourceID, TDes &aNewPassword, const TDesC &aOldPassword) |
Simple constructor depending only on a single resource Id and the new and old password. |
|
IMPORT_C | CAknPasswordSettingPage (const TDesC *aSettingTitleText, TInt aSettingNumber, TInt aControlType, TInt aEditorResourceId, TInt aSettingPageResourceId, TDes &aNewPassword, const TDesC &aOldPassword) |
Constructor that allows separate setting page and editor resources. |
|
IMPORT_C void | SetOldPasswordConfirmationResourceId (TInt aOldPasswordConfirmationResourceId) |
Set the resource Id set for the old password confirmation sequence. |
|
IMPORT_C void | SetNewPasswordConfirmationResourceId (TInt aNewPasswordConfirmationResourceId) |
Set the resource Id set for the new password confirmation sequence Resource Id should be for a AVKON_PASSWORD_CONFIRMATION
structure. |
|
IMPORT_C void | SetMatchingMode (TAknPasswordMatchingMode aMode) |
Sets the matching mode to be used in the password validation. |
|
IMPORT_C TAknPasswordMatchingMode | MatchingMode () |
Returns the matching mode to be used in the password validation. |
|
IMPORT_C void | SetMaxPasswordLength (TInt aLength) |
Sets the maximum length of the password. |
|
IMPORT_C TInt | MaxPasswordLength () const |
Access the maximum password length. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl. |
|
Protected Member Functions |
|
virtual IMPORT_C void | UpdateSettingL () |
Implementation of CAknSettingPage framework method Called when the client's value is updated. |
|
virtual IMPORT_C void | AcceptSettingL () |
Implementation of CAknSettingPage framework method Perform necessary operations when the user accepts. |
|
virtual IMPORT_C void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
Acts upon changes in the hosted control's state. |
|
virtual IMPORT_C void | PostDisplayInitL () |
Implementation of CAknSettingPage framework method. |
|
virtual IMPORT_C TBool | PostDisplayCheckL () |
Implementation of CAknSettingPage framework method Called after display of the setting page, but before the start of the setting page "waiting". |
|
virtual IMPORT_C TBool | OkToExitL (TBool aAccept) |
Implementation of CAknSettingPage framework method. |
|
virtual IMPORT_C void | SizeChanged () |
Implementation of CCoeControl framework method Called when the control has its size changed. |
|
IMPORT_C void | Draw (const TRect &aRect) const |
Implementation of CCoeControl framework method Called when required to draw. |
|
virtual void | UpdateTextL ()=0 |
Only implemented in the derived classes Updates the text in the referenced password descriptor using a utility routine. |
|
virtual IMPORT_C TBool | ExecuteOldPasswordConfirmationL (const TDesC &aPassword, TInt aPasswordConfirmationResourceId) |
Framework for password handling Called when the old password is to be confirmed. |
|
virtual IMPORT_C TBool | ExecuteNewPasswordConfirmationL (const TDesC &aPassword, TInt aPasswordConfirmationResourceId) |
Framework for password handling Called when the new password is to be confirmed. |
|
virtual IMPORT_C TInt | ComparePasswords (const TDesC &aRefPassword, const TDesC &aCandidatePassword, TAknPasswordMatchingMode) const |
Framework for password handling Called to compare the two passwords. |
|
IMPORT_C TInt | OldPasswordConfirmationResourceId () const |
Utility method Access to the old password confirmation resource. |
|
IMPORT_C TInt | NewPasswordConfirmationResourceId () const |
Utility method Access to the new password confirmation resource. |
|
IMPORT_C void | ReadConfirmationResourceL (TInt aPasswordResourceId, SAknConfirmationResource &aResourceGroup) |
Utility method Read in the confirmation resource structure. |
|
IMPORT_C TBool | DoPasswordConfirmationL (const TDesC &aPassword, TInt aPasswordConfirmationResourceId, TAknPasswordMatchingMode aMatchMode, TInt &aTries) |
Utility method Run the password confirmation. |
|
IMPORT_C TDes & | NewPassword () const |
Utility method Access to new password candidate. |
|
IMPORT_C const TDesC & | OldPassword () const |
Utility method Access to old password. |
|
virtual IMPORT_C void | WriteInternalStateL (RWriteStream &aWriteStream) const |
Writes the internal state of the control and its components to aStream. |
|
Modes to be used for the matching of password texts. |
|
Simple constructor depending only on a single resource Id and the new and old password. Editor resource is given via the link in the setting page resource.
|
|
Constructor that allows separate setting page and editor resources. This constructor allows the use of setting page using only the editor resource. Other combinations are also possible In all cases the number (if supplied i.e. <> 0 ) is used. Editor Resource Setting Page Resource present present Both are used (but text & number overridden) = 0 present Editor resource is used via SP resource (Effectively like the other constructor) present = 0 Default Avkon SP resource if used + this editor resource = 0 = 0 uses default resource for both SP and editor. This is OK if: i) control type is present, ii) a default resource exists ( OK for text, integer, date, time, duration ) Note: The first argument is a TDesC* (rather than TDesC&) because the other constructor cannot initialize such a member without allocation or having an internal dummy buffer. This descriptor must be owned by the client since not copy is taken until ExecuteLD() Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the specific API for setting them, WILL override resource. It is assumed that number from resource is very rare. Special text is somewhat more likely.
|
|
Implementation of CAknSettingPage framework method Perform necessary operations when the user accepts. Default implementation has password checking Reimplemented from CAknSettingPage. |
|
Framework for password handling Called to compare the two passwords.
|
|
Utility method Run the password confirmation. |
|
Implementation of CCoeControl framework method Called when required to draw. Reimplemented from CAknSettingPage. |
|
Framework for password handling Called when the new password is to be confirmed.
|
|
Framework for password handling Called when the old password is to be confirmed.
|
|
Acts upon changes in the hosted control's state.
Reimplemented from CAknSettingPage. |
|
From CCoeControl. Reimplemented from CAknSettingPage. Reimplemented in CAknAlphaPasswordSettingPage, and CAknNumericPasswordSettingPage. |
|
Returns the matching mode to be used in the password validation.
|
|
Access the maximum password length.
|
|
Utility method Access to new password candidate. |
|
Utility method Access to the new password confirmation resource.
|
|
Implementation of CAknSettingPage framework method. Reimplemented from CAknSettingPage. |
|
Utility method Access to old password. |
|
Utility method Access to the old password confirmation resource.
|
|
Implementation of CAknSettingPage framework method Called after display of the setting page, but before the start of the setting page "waiting". If overidden, would normally hold a query.
Reimplemented from CAknSettingPage. |
|
Implementation of CAknSettingPage framework method. Method called after full construction and activation of the setting page |
|
Utility method Read in the confirmation resource structure.
|
|
Sets the matching mode to be used in the password validation.
|
|
Sets the maximum length of the password. The user will not be able to enter more than this number of characters/keys
|
|
Set the resource Id set for the new password confirmation sequence Resource Id should be for a AVKON_PASSWORD_CONFIRMATION structure.
|
|
Set the resource Id set for the old password confirmation sequence. Resource Id should be for a AVKON_PASSWORD_CONFIRMATION structure
|
|
Implementation of CCoeControl framework method Called when the control has its size changed. Reimplemented from CAknSettingPage. |
|
Implementation of CAknSettingPage framework method Called when the client's value is updated. Frequency of calling depends upon the flag passed to ExecuteLD() Reimplemented from CAknSettingPage. |
|
Only implemented in the derived classes Updates the text in the referenced password descriptor using a utility routine. Implemented in CAknAlphaPasswordSettingPage, and CAknNumericPasswordSettingPage. |
|
Writes the internal state of the control and its components to aStream. Does nothing in release mode. Designed to be overidden and base called by subclasses.
Reimplemented from CAknSettingPage. Reimplemented in CAknAlphaPasswordSettingPage, and CAknNumericPasswordSettingPage. |