class CAknIpFieldSettingPage : public CAknMfneSettingPage |
Setting page class for entering an IP Address
Public Member Functions | |
---|---|
CAknIpFieldSettingPage(TInt, TInetAddr &) | |
CAknIpFieldSettingPage(const TDesC *, TInt, TInt, TInt, TInt, TInetAddr &) | |
IMPORT_C void | ConstructL() |
IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C CAknIpFieldEditor * | IpFieldEditor() |
Protected Member Functions | |
---|---|
~CAknIpFieldSettingPage() | |
IMPORT_C void | AcceptSettingL() |
IMPORT_C void | RestoreOriginalSettingL() |
IMPORT_C void | UpdateSettingL() |
IMPORT_C void | WriteInternalStateL(RWriteStream &) |
Private Member Functions | |
---|---|
IMPORT_C void | CAknSettingPage_Reserved_1() |
IMPORT_C void | CAknSettingPage_Reserved_2() |
IMPORT_C void * | ExtensionInterface(TUid) |
IMPORT_C void | Reserved_2() |
Inherited Enumerations | |
---|---|
CAknSettingPage:TAknSettingPageUpdateMode | |
CAknSettingPage:TEditedItemSkinClass | |
CCoeControl:TZoomType |
Private Attributes | |
---|---|
TInetAddr | iBackupIpAddress |
TInetAddr & | iIpAddress |
IMPORT_C | CAknIpFieldSettingPage | ( | TInt | aResourceID, |
TInetAddr & | aIpAddress | |||
) |
Constructor using purely Setting page resource
IMPORT_C | CAknIpFieldSettingPage | ( | const TDesC * | aSettingTitleText, |
TInt | aSettingNumber, | |||
TInt | aControlType, | |||
TInt | aEditorResourceId, | |||
TInt | aSettingPageResourceId, | |||
TInetAddr & | aIpAddress | |||
) |
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. Note that this descriptor must be owned by the client at least until the 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.
const TDesC * aSettingTitleText | Text at top of setting pane; OWNED EXTERNALLY |
TInt aSettingNumber | Number at top left (if present) |
TInt aControlType | Determines the type constructed and how its resource is read |
TInt aEditorResourceId | Editor resource to use in the setting page (if present) |
TInt aSettingPageResourceId | Setting Page to use (if present) |
TInetAddr & aIpAddress | reference to a duration |
IMPORT_C void | AcceptSettingL | ( | ) | [protected, virtual] |
Called when the user has accepted the value. The external value is updated once again, in case we were not in continuous update mode. A specific observer event is generated for the observer to say that the value is accepted.
IMPORT_C void | CAknSettingPage_Reserved_1 | ( | ) | [private, virtual] |
New reserved methods for CAknSettingPage hierarchy
IMPORT_C void | ConstructL | ( | ) | [virtual] |
Specific 2nd stage contructor for this type. Construction is performed according to the resources and parameters set in the C++ constructors
IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl
TUid aInterface |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
From CCoeControl
const TPointerEvent & aPointerEvent |
IMPORT_C void | RestoreOriginalSettingL | ( | ) | [protected, virtual] |
The backup value, stored at construction time, is re-loaded into the referenced Date. An event is sent to the observer saying that the event was dismissed.
IMPORT_C void | UpdateSettingL | ( | ) | [protected, virtual] |
This framework method is called when the editor changes its value and the mode of execution of the setting page is a continuous update mode.
IMPORT_C void | WriteInternalStateL | ( | RWriteStream & | aWriteStream | ) | const [protected, virtual] |
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.
RWriteStream & aWriteStream |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.