CAknSettingPage Class Reference

API published in: S60 1st Ed

Link against: avkon.lib

Capability Information

Required Capabilities

None


#include <aknsettingpage.h>

Inherits CAknControl.

Inherited by CAknEdwinSettingPage, CAknListBoxSettingPage, CAknMfneSettingPage, CAknPasswordSettingPage, CAknSliderSettingPage, and CAknVolumeSettingPage.


Public Types

enum   TAknSettingPageUpdateMode { EUpdateWhenChanged, EUpdateWhenAccepted }
  This enumeration is passed in the ExecuteLD() method to control how often the setting page updates the externally held client object. More...
enum   TEditedItemSkinClass {
  ESettingPageSkinEditedItemClassValueItemList, ESettingPageSkinEditedItemClassVolume, ESettingPageSkinEditedItemClassSlider, ESettingPageSkinEditedItemClassTextEntry,
  ESettingPageSkinEditedItemClassCodeDateTimeEntry
}
  This enumeration is used to select the type and IIDs for the various classes defined in the Skins LAF spec for "Opened Setting Items". More...

Public Member Functions

IMPORT_C  CAknSettingPage (TInt aSettingPageResourceId)
  Simple contructor for using a single setting page resource which itself gives all the setup.
IMPORT_C  CAknSettingPage (const TDesC *aSettingTitleText, TInt aSettingNumber, TInt aControlType, TInt aEditorResourceId, TInt aSettingPageResourceId=0)
  Constructor that allows separate setting page and editor resources.
virtual IMPORT_C  ~CAknSettingPage ()
  C++ destructor.
IMPORT_C TBool  ExecuteLD (enum CAknSettingPage::TAknSettingPageUpdateMode aMode=EUpdateWhenAccepted)
  Executes a waiting dialog-like setting page.
virtual IMPORT_C void  ConstructL ()
  public method for construction.
IMPORT_C CCoeControl *  EditorControl () const
  Returns reference to the hosted "editor" control as a CCoeControl.
IMPORT_C TInt  SettingId () const
  Returns the setting Id.
IMPORT_C void  SetSettingId (TInt aSettingId)
  Sets the setting Id.
IMPORT_C void  SetSettingNumberL (const TInt aSettingNumber)
  Substitutes the new setting number.
IMPORT_C void  SetSettingTextL (const TDesC &aSettingText)
  Substitutes the new setting text.
IMPORT_C void  SetSettingPageObserver (MAknSettingPageObserver *aObserver)
  Sets the observer for the setting page.
IMPORT_C TInt  SettingNumber () const
  Access method for the number of the setting page.
IMPORT_C TBool  IsNumbered () const
  Access method for whether the setting page is numbered or not.
IMPORT_C void  SetNumbered (TBool aNumbered)
  Set method for whether the setting page is numbered or not.
IMPORT_C void  SetEditState (const TBool aEditable)
  Set the edit-state of the setting page.
IMPORT_C TBool  IsEditable () const
  Is the setting page possible to edit by the user.
IMPORT_C void  HandleResourceChange (TInt aType)
  Handles a change to the control's resources of type aType which are shared across the environment, e.g.
IMPORT_C TInt  CountComponentControls () const
  Standard CCoeControl routine to return the number of componentn controls.
IMPORT_C CCoeControl *  ComponentControl (TInt anIndex) const
  Standard CCoeControl routine to return the control at a given index.
IMPORT_C void  HandlePointerEventL (const TPointerEvent &aPointerEvent)
  Handles pointer events.

Static Public Member Functions

static IMPORT_C void  GetEditorResourceInfoL (TInt aSettingPageResourceId, TInt &aControlType, TInt &aEditorResourceId)
  Reads the passed-in setting page resource in order to read the contained editor control resource information.

Protected Member Functions

virtual IMPORT_C void  SizeChanged ()
  From CCoeControl This routine is called as part of the set-up of the control.
virtual IMPORT_C void  FocusChanged (TDrawNow aDrawNow)
  From CCoeControl Takes any action required when the control gains or loses focus e.g.
virtual IMPORT_C void  ProcessCommandL (TInt aCommandId)
  From MEikCommandObserver Processes events from the softkeys.
virtual IMPORT_C void  HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType)
  From MCoeControlObserver: Acts upon changes in the hosted control's state.
virtual IMPORT_C TBool  OkToExitL (TBool aAccept)
  Framework method to determine if it is OK to exit the setting page.
virtual IMPORT_C void  DynamicInitL ()
  Called immediately prior to activation of the dialog.
virtual IMPORT_C void  UpdateSettingL ()
  Called when something has changed and the client's object needs to have its value updated.
virtual IMPORT_C void  AcceptSettingL ()
  Called when the user accepts a setting and the setting page is about to be dismissed.
virtual IMPORT_C void  RestoreOriginalSettingL ()
  Called when the user rejects the setting.
virtual IMPORT_C void  DisplayMenuL ()
  Display the menu.
virtual IMPORT_C void  HideMenu ()
  Hide the menu.
virtual IMPORT_C void  SetFocusToEditor ()
  Puts the focus back on the editor.
virtual IMPORT_C void  SelectCurrentItemL ()
  This method should be implemented in listbox classes to move the selection in listbox editors prior to exiting from the setting page.
IMPORT_C void  BaseConstructL ()
  Protected non-virtual base method for construction.
IMPORT_C void  DismissL (TBool aAccept)
  Called to remove the setting page.
IMPORT_C TBool  MenuShowing () const
  This is used as a protected access function for the state of the menu bar.
IMPORT_C void  ConstructFromResourceL (TInt aResourceId)
  This constructs the control based upon the id passed.
IMPORT_C void  ConstructFromResourceL (TResourceReader &aRes)
  This constructs the control based upon a constructed and positioned reader.
IMPORT_C void  AttemptExitL (TBool aAccept)
  Called when the user accepts or cancels the setting.
IMPORT_C TBool  Waiting ()
  Method to determine the current running state of the setting page's ActiveScheduler level.
IMPORT_C CEikButtonGroupContainer Cba () const
  Access method to the Command button array.
IMPORT_C TInt  DefaultCbaResourceId () const
  This is used to access the default resource id for the cba - the one used when data is valid.
IMPORT_C TKeyResponse  OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType)
  This routine routes the keys to the editor.
IMPORT_C void  StandardSettingPageLayout ()
  This routine is the base layout for CAknSettingPage.
IMPORT_C TBool  IsBaseConstructed ()
  This method can be used to test if BaseConstructL() has been called yet successfully.
IMPORT_C TInt  SettingPageResourceId ()
  Access method for the internally held resource Id.
IMPORT_C void  BaseDraw (const TRect &aRect) const
  Perform the drawing of coded within CAknSettingPage.
IMPORT_C void  ResetFlags ()
  Set default construction values of internal state.
virtual IMPORT_C TBool  PostDisplayCheckL ()
  Framework method called as soon as the setting page is displayed, but before the new active sheduler level is started.
virtual IMPORT_C void  UpdateCbaL ()
  This framework method is used to update the contents of the CBA in a custom way.
IMPORT_C TBool  DataValidity () const
  Called to access the validity state of the data.
IMPORT_C void  SetDataValidity (TBool aValid)
  used to set the validity of the data
virtual IMPORT_C void  CheckAndSetDataValidity ()
  Framework method to set the validity of the data This is called when the data changes.
void  SetEditedItemLayoutRect (const TRect &aFrameRect, const TRect &aRealEditorRect)
  Method to be called by CAknSettingPage descendents when they have laid themselves out.
void  CreateEditedItemControlContextL (TEditedItemSkinClass aSkinClass, TBool aParentAbsolute)
  Method to cause this class to construct a control context or type and IID, selected according to the value of enumeration TEditedItemSkinClass, set its coordinate system.
TBool  IsSkinsHandlingEditorFrameDrawing () const
  Indicates whether skin system will be able to draw the editor frame and background.
CAknsFrameBackgroundControlContext EditedItemControlContext () const
  Control context for providing to the skinning for the hosted editor and its framing.
virtual IMPORT_C void  SetEmphasis (CCoeControl *, TBool aEmphasis)
  From MEikMenuObserver Called when menu is cancelled.
virtual IMPORT_C void  DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)
  From MEikMenuObserver This function intializes the items on the menu.
IMPORT_C TInt  InvalidDataCbaResourceId () const
  Access method for the softkey resource used when there is invalid data.
IMPORT_C TTypeUid::Ptr  MopSupplyObject (TTypeUid aId)
virtual IMPORT_C void  WriteInternalStateL (RWriteStream &aWriteStream) const
  Writes the internal state of the control and its components to aStream.
void  SetDrawBackground (const TBool aDrawBackground)
  Enables / disables transparency effect, i.e.
TBool  IsBackgroundDrawingEnabled () const
  Is the setting page drawing the background itself or not (= "transparency").

Protected Attributes

TInt  iUpdateMode
  Hold the update mode passed in the constructor.
MAknSettingPageObserver iSettingPageObserver
  Pointer to setting page observer; may be NULL.

Member Enumeration Documentation

enum CAknSettingPage::TAknSettingPageUpdateMode
 

This enumeration is passed in the ExecuteLD() method to control how often the setting page updates the externally held client object.

Enumerator:
EUpdateWhenChanged 
EUpdateWhenAccepted 
enum CAknSettingPage::TEditedItemSkinClass
 

This enumeration is used to select the type and IIDs for the various classes defined in the Skins LAF spec for "Opened Setting Items".

Enumerator:
ESettingPageSkinEditedItemClassValueItemList 
ESettingPageSkinEditedItemClassVolume 
ESettingPageSkinEditedItemClassSlider 
ESettingPageSkinEditedItemClassTextEntry 
ESettingPageSkinEditedItemClassCodeDateTimeEntry 

Constructor & Destructor Documentation

IMPORT_C CAknSettingPage::CAknSettingPage TInt  aSettingPageResourceId  ) 
 

Simple contructor for using a single setting page resource which itself gives all the setup.

IMPORT_C CAknSettingPage::CAknSettingPage const TDesC *  aSettingTitleText,
TInt  aSettingNumber,
TInt  aControlType,
TInt  aEditorResourceId,
TInt  aSettingPageResourceId = 0
 

Constructor that allows separate setting page and editor resources.

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 present = 0 Default Avkon SP resource if used = 0 = 0 Not permitted

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.

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.

Parameters:
aSettingTitleText  Text at top of setting pane (not copied; must be owned externally until ExecuteLD is called)
aSettingNumber  Number at top left (if present)
aControlType  Determines the type constructed and how its resource is read
aEditorResourceId  Editor resource to use in the setting page (if present)
aSettingPageResourceId  Setting Page to use (if present)
virtual IMPORT_C CAknSettingPage::~CAknSettingPage  )  [virtual]
 

C++ destructor.


Member Function Documentation

virtual IMPORT_C void CAknSettingPage::AcceptSettingL  )  [protected, virtual]
 

Called when the user accepts a setting and the setting page is about to be dismissed.

The latest value of the setting is written to the client's object

Reimplemented in CAknDateSettingPage, CAknTimeSettingPage, CAknDurationSettingPage, CAknTimeOffsetSettingPage, CAknIpFieldSettingPage, CAknPasswordSettingPage, CAknSliderSettingPage, CAknTextSettingPage, and CAknVolumeSettingPage.

IMPORT_C void CAknSettingPage::AttemptExitL TBool  aAccept  )  [protected]
 

Called when the user accepts or cancels the setting.

Default implementation sets the return value and exists.

Re-implementations must call DismissL and StopActiveScheduler() if the setting is to leave.

Parameters:
aAccept  ETrue if the user accepted. EFalse if the user cancelled.
IMPORT_C void CAknSettingPage::BaseConstructL  )  [protected]
 

Protected non-virtual base method for construction.

Only thing required to do in this class is call the ConstructFromResourceL routine and set the flag that says construction has occured

IMPORT_C void CAknSettingPage::BaseDraw const TRect &  aRect  )  const [protected]
 

Perform the drawing of coded within CAknSettingPage.

IMPORT_C CEikButtonGroupContainer* CAknSettingPage::Cba  )  const [protected]
 

Access method to the Command button array.

Must be called after full construction, or null reference will be returned.

Returns:
CEikButtonGroupContainer* a pointer to the cba owned by the setting page
virtual IMPORT_C void CAknSettingPage::CheckAndSetDataValidity  )  [protected, virtual]
 

Framework method to set the validity of the data This is called when the data changes.

Reimplemented in CAknListBoxSettingPage, CAknMfneSettingPage, CAknTextSettingPage, and CAknIntegerSettingPage.

IMPORT_C CCoeControl* CAknSettingPage::ComponentControl TInt  anIndex  )  const
 

Standard CCoeControl routine to return the control at a given index.

Parameters:
aIndex  index at which to return control

Reimplemented in CAknMfneSettingPage.

IMPORT_C void CAknSettingPage::ConstructFromResourceL TResourceReader &  aRes  )  [protected]
 

This constructs the control based upon a constructed and positioned reader.

IMPORT_C void CAknSettingPage::ConstructFromResourceL TInt  aResourceId  )  [protected]
 

This constructs the control based upon the id passed.

virtual IMPORT_C void CAknSettingPage::ConstructL  )  [virtual]
 

public method for construction.

Only thing required to do in this class is to call the BaseConstructL(). Derived classes may be required to do more

Reimplemented in CAknCheckBoxSettingPage, CAknMfneSettingPage, CAknDateSettingPage, CAknTimeSettingPage, CAknDurationSettingPage, CAknTimeOffsetSettingPage, CAknIpFieldSettingPage, CAknAlphaPasswordSettingPage, CAknNumericPasswordSettingPage, CAknPopupSettingPage, CAknRadioButtonSettingPage, CAknSliderSettingPage, CAknTextSettingPage, CAknIntegerSettingPage, and CAknVolumeSettingPage.

IMPORT_C TInt CAknSettingPage::CountComponentControls  )  const
 

Standard CCoeControl routine to return the number of componentn controls.

Parameters:
aIndex  index at which to return control

Reimplemented in CAknMfneSettingPage.

void CAknSettingPage::CreateEditedItemControlContextL TEditedItemSkinClass  aSkinClass,
TBool  aParentAbsolute
[protected]
 

Method to cause this class to construct a control context or type and IID, selected according to the value of enumeration TEditedItemSkinClass, set its coordinate system.

This must be called after a call to SetEditedItemLayoutRect has been made on CAknSettingPage. This is becasue this routine must set the control context's origin to the top left of the value given to SetEditedItemLayoutRect. Since SetEditeItemLayoutRect is to be called in a SizeChanged method, this means that the this should be called after the SizeChanged in the child class.

Parameters:
aClass  enumeration specifying which class of editor (according to LAF spec) is being constructed.
aParentAbsolute  ETrue if there is an intervening Window between CAknSettingPage's window and any control that is to draw skin items with this component.
since 2.0
IMPORT_C TBool CAknSettingPage::DataValidity  )  const [protected]
 

Called to access the validity state of the data.

Returns:
TBool ETRrue if the data is valid
IMPORT_C TInt CAknSettingPage::DefaultCbaResourceId  )  const [protected]
 

This is used to access the default resource id for the cba - the one used when data is valid.

Returns:
TInt the default resource Id
IMPORT_C void CAknSettingPage::DismissL TBool  aAccept  )  [protected]
 

Called to remove the setting page.

Should not be called except from within re-implemented AttemptExitL

Parameters:
aAccept  ETrue to accept the current value; EFalse otherwise
virtual IMPORT_C void CAknSettingPage::DisplayMenuL  )  [protected, virtual]
 

Display the menu.

virtual IMPORT_C void CAknSettingPage::DynamicInitL  )  [protected, virtual]
 

Called immediately prior to activation of the dialog.

Framework routine for derived classes.

Reimplemented in CAknCheckBoxSettingPage, CAknRadioButtonSettingPage, CAknTextSettingPage, and CAknIntegerSettingPage.

virtual IMPORT_C void CAknSettingPage::DynInitMenuPaneL TInt  aResourceId,
CEikMenuPane aMenuPane
[protected, virtual]
 

From MEikMenuObserver This function intializes the items on the menu.

It is used to disable and enable menu items and may be over ridden to add new ones. In addition it adds menu items which have been provided in the ConstructL in the form of a Menu Bar resource. Instead of using the Menu Bar directly it extracts the menu panes and adds them to its own menu pane. It must be called in the DynInitMenuPaneL() function of any derived class before anything else.

CAknsFrameBackgroundControlContext* CAknSettingPage::EditedItemControlContext  )  const [protected]
 

Control context for providing to the skinning for the hosted editor and its framing.

Returns:
A valid control context for frame drawing for a hosted editor or NULL
IMPORT_C CCoeControl* CAknSettingPage::EditorControl  )  const
 

Returns reference to the hosted "editor" control as a CCoeControl.

This routine is used in derived classes, which may then cast to the specific run-time type Note also that derived classes may provide type-specific access that performs these casts already

Returns:
CCoeControl* pointer to the hosted editor control
IMPORT_C TBool CAknSettingPage::ExecuteLD enum CAknSettingPage::TAknSettingPageUpdateMode  aMode = EUpdateWhenAccepted  ) 
 

Executes a waiting dialog-like setting page.

The passed mode determines if the editor's value is updated continuously, or just when it is accepted.

Parameters:
aMode  The update mode of the class
virtual IMPORT_C void CAknSettingPage::FocusChanged TDrawNow  aDrawNow  )  [protected, virtual]
 

From CCoeControl Takes any action required when the control gains or loses focus e.g.

to change its appearance. The control should be redrawn depending on the value of aDrawNow. Empty by default.

static IMPORT_C void CAknSettingPage::GetEditorResourceInfoL TInt  aSettingPageResourceId,
TInt &  aControlType,
TInt &  aEditorResourceId
[static]
 

Reads the passed-in setting page resource in order to read the contained editor control resource information.

Parameters:
aSettingPageResoruceId  This is used to specifiy what resource to read
aControlType  Returns the control type (MAY return 0 - that's a valid control type!
aEditorResourceId  Returns the setting page's LLINK editor resource, but returns 0 if not present
This will leave if an invalid resource ID is passed
virtual IMPORT_C void CAknSettingPage::HandleControlEventL CCoeControl *  aControl,
TCoeEvent  aEventType
[protected, virtual]
 

From MCoeControlObserver: Acts upon changes in the hosted control's state.

This class's implementation is trivial and should be able to be safely re-implemented in directly client-derived classes. For non-base setting page classes, a call to the base class should be made

Parameters:
aControl  The control changing its state (not used)
aEventType  The type of control event

Reimplemented in CAknMfneSettingPage, CAknPasswordSettingPage, CAknTextSettingPage, and CAknIntegerSettingPage.

IMPORT_C void CAknSettingPage::HandlePointerEventL const TPointerEvent &  aPointerEvent  ) 
 

Handles pointer events.

Reimplemented in CAknCheckBoxSettingPage, CAknMfneSettingPage, CAknDateSettingPage, CAknTimeSettingPage, CAknDurationSettingPage, CAknTimeOffsetSettingPage, CAknIpFieldSettingPage, CAknPasswordSettingPage, CAknAlphaPasswordSettingPage, CAknNumericPasswordSettingPage, CAknPopupSettingPage, CAknRadioButtonSettingPage, CAknSliderSettingPage, CAknEdwinSettingPage, CAknTextSettingPage, CAknIntegerSettingPage, and CAknVolumeSettingPage.

IMPORT_C void CAknSettingPage::HandleResourceChange TInt  aType  ) 
 

Handles a change to the control's resources of type aType which are shared across the environment, e.g.

colors or fonts.

Parameters:
aType  Reason for the "resource" change, usually an system event UID

Reimplemented in CAknCheckBoxSettingPage, and CAknRadioButtonSettingPage.

virtual IMPORT_C void CAknSettingPage::HideMenu  )  [protected, virtual]
 

Hide the menu.

IMPORT_C TInt CAknSettingPage::InvalidDataCbaResourceId  )  const [protected]
 

Access method for the softkey resource used when there is invalid data.

Returns:
TInt The resource Id of the softkey bindings.
TBool CAknSettingPage::IsBackgroundDrawingEnabled  )  const [protected]
 

Is the setting page drawing the background itself or not (= "transparency").

IMPORT_C TBool CAknSettingPage::IsBaseConstructed  )  [protected]
 

This method can be used to test if BaseConstructL() has been called yet successfully.

Returns:
TBool ETrue if BaseContructL has been called (and not left)
IMPORT_C TBool CAknSettingPage::IsEditable  )  const
 

Is the setting page possible to edit by the user.

Returns:
Can user modify the setting page. True if can, false if cannot.
IMPORT_C TBool CAknSettingPage::IsNumbered  )  const
 

Access method for whether the setting page is numbered or not.

TBool CAknSettingPage::IsSkinsHandlingEditorFrameDrawing  )  const [protected]
 

Indicates whether skin system will be able to draw the editor frame and background.

Returns:
TBool ETrue iff the drawing of the edited item frame is going to be handled by the base CAknSettingPage class itself using Skins
IMPORT_C TBool CAknSettingPage::MenuShowing  )  const [protected]
 

This is used as a protected access function for the state of the menu bar.

Returns:
TBool ETrue if the menu is currently showing
IMPORT_C TTypeUid::Ptr CAknSettingPage::MopSupplyObject TTypeUid  aId  )  [protected]
 
IMPORT_C TKeyResponse CAknSettingPage::OfferKeyEventL const TKeyEvent &  aKeyEvent,
TEventCode  aType
[protected]
 

This routine routes the keys to the editor.

However, if the menu is showing, then events are sent to the menu.

Parameters:
aKeyEvent  event information
aType  type of event being handled

Reimplemented in CAknTextSettingPage.

virtual IMPORT_C TBool CAknSettingPage::OkToExitL TBool  aAccept  )  [protected, virtual]
 

Framework method to determine if it is OK to exit the setting page.

Derived classes may check for valid data before allowing the dismissal of the setting page.

Parameters:
aAccept  ETrue if the user has indicated to accept the setting page; EFalse otherwise
Returns:
TBool a value indicating whether the setting page should be dismissed

Reimplemented in CAknPasswordSettingPage, and CAknTextSettingPage.

virtual IMPORT_C TBool CAknSettingPage::PostDisplayCheckL  )  [protected, virtual]
 

Framework method called as soon as the setting page is displayed, but before the new active sheduler level is started.

Returning EFalse will dismiss the setting page right away

Returns:
TBool ETrue if the setting page is to continue

Reimplemented in CAknPasswordSettingPage.

virtual IMPORT_C void CAknSettingPage::ProcessCommandL TInt  aCommandId  )  [protected, virtual]
 

From MEikCommandObserver Processes events from the softkeys.

Responds to EAknSoftkeyOk and EAknSoftkeyBack to accept or cancel the pop-up.

Parameters:
aCommandId  Event Id from the soft-key

Reimplemented in CAknCheckBoxSettingPage.

IMPORT_C void CAknSettingPage::ResetFlags  )  [protected]
 

Set default construction values of internal state.

virtual IMPORT_C void CAknSettingPage::RestoreOriginalSettingL  )  [protected, virtual]
 

Called when the user rejects the setting.

A backup copy may need to be restored if UpdateWhenChanged flag was set

Reimplemented in CAknDateSettingPage, CAknTimeSettingPage, CAknDurationSettingPage, CAknTimeOffsetSettingPage, CAknIpFieldSettingPage, CAknSliderSettingPage, CAknTextSettingPage, CAknIntegerSettingPage, and CAknVolumeSettingPage.

virtual IMPORT_C void CAknSettingPage::SelectCurrentItemL  )  [protected, virtual]
 

This method should be implemented in listbox classes to move the selection in listbox editors prior to exiting from the setting page.

It is called on a CAknSettingPage* reference, and is therefore declared here.

Reimplemented in CAknCheckBoxSettingPage, CAknPopupSettingPage, and CAknRadioButtonSettingPage.

IMPORT_C void CAknSettingPage::SetDataValidity TBool  aValid  )  [protected]
 

used to set the validity of the data

Parameters:
TBool  aValid Sets the validity true or false
void CAknSettingPage::SetDrawBackground const TBool  aDrawBackground  )  [protected]
 

Enables / disables transparency effect, i.e.

does the setting page draw its own background or not.

Parameters:
aDrawBackground  EFalse enables transparency
void CAknSettingPage::SetEditedItemLayoutRect const TRect &  aFrameRect,
const TRect &  aRealEditorRect
[protected]
 

Method to be called by CAknSettingPage descendents when they have laid themselves out.

This tells the base class how big the layout spec rectangle hosting the editor is. The second rectangle is the size of the area that the base class does not have to draw to for skins. Usually, this is the area actually inhabited by the editor control.

Coordinates are to be given in pixels relative to the main_pane.

Parameters:
aFrameRect  Layout rectangle in which to host the editor.
aRealEditorRect  Layout rectangle actually occupied by the editor control
IMPORT_C void CAknSettingPage::SetEditState const TBool  aEditable  ) 
 

Set the edit-state of the setting page.

The setting page can be edited or it can be only viewed by the user.

Parameters:
aEditable  If false, the setting page cannot be modified by the user
virtual IMPORT_C void CAknSettingPage::SetEmphasis CCoeControl *  ,
TBool  aEmphasis
[protected, virtual]
 

From MEikMenuObserver Called when menu is cancelled.

virtual IMPORT_C void CAknSettingPage::SetFocusToEditor  )  [protected, virtual]
 

Puts the focus back on the editor.

For complicated setting pages that have focus removed from them at some point, then a re-implementation may have to do some work here.

IMPORT_C void CAknSettingPage::SetNumbered TBool  aNumbered  ) 
 

Set method for whether the setting page is numbered or not.

IMPORT_C void CAknSettingPage::SetSettingId TInt  aSettingId  ) 
 

Sets the setting Id.

The Id may be used to unabiguously number a setting in some context. It would be useful to call SettingId() on aSettingPageControl in handling an observer callback. The Id is not used internally.

Parameters:
aSettingId  An id to provide to the observer in the callback
IMPORT_C void CAknSettingPage::SetSettingNumberL const TInt  aSettingNumber  ) 
 

Substitutes the new setting number.

Parameters:
aSettingNumber  The new setting number to display
IMPORT_C void CAknSettingPage::SetSettingPageObserver MAknSettingPageObserver aObserver  ) 
 

Sets the observer for the setting page.

Parameters:
aObserver  The observer for changes to the setting
IMPORT_C void CAknSettingPage::SetSettingTextL const TDesC &  aSettingText  ) 
 

Substitutes the new setting text.

Memory is allocated for a copy. If already constructed, the label is reformatted.

Note that calling this will over-ride text in Setting Page resource

Parameters:
aSettingText  The new setting text to display
IMPORT_C TInt CAknSettingPage::SettingId  )  const
 

Returns the setting Id.

Returns:
TInt the setting Id
IMPORT_C TInt CAknSettingPage::SettingNumber  )  const
 

Access method for the number of the setting page.

IMPORT_C TInt CAknSettingPage::SettingPageResourceId  )  [protected]
 

Access method for the internally held resource Id.

virtual IMPORT_C void CAknSettingPage::SizeChanged  )  [protected, virtual]
 

From CCoeControl This routine is called as part of the set-up of the control.

It is the place to put layout code.

Reimplemented in CAknListBoxSettingPage, CAknMfneSettingPage, CAknPasswordSettingPage, CAknSliderSettingPage, CAknEdwinSettingPage, CAknTextSettingPage, CAknIntegerSettingPage, and CAknVolumeSettingPage.

IMPORT_C void CAknSettingPage::StandardSettingPageLayout  )  [protected]
 

This routine is the base layout for CAknSettingPage.

It lays out the labels and configures the drawing in general.

virtual IMPORT_C void CAknSettingPage::UpdateCbaL  )  [protected, virtual]
 

This framework method is used to update the contents of the CBA in a custom way.

Some setting page classes implement a degree of validation and will implement this. Derived classes should ensure that this is being called frequently enough for their purposes.

Reimplemented in CAknListBoxSettingPage, CAknTextSettingPage, and CAknIntegerSettingPage.

virtual IMPORT_C void CAknSettingPage::UpdateSettingL  )  [protected, virtual]
 

Called when something has changed and the client's object needs to have its value updated.

Reimplemented in CAknCheckBoxSettingPage, CAknDateSettingPage, CAknTimeSettingPage, CAknDurationSettingPage, CAknTimeOffsetSettingPage, CAknIpFieldSettingPage, CAknPasswordSettingPage, CAknRadioButtonSettingPage, CAknSliderSettingPage, CAknTextSettingPage, CAknIntegerSettingPage, and CAknVolumeSettingPage.

IMPORT_C TBool CAknSettingPage::Waiting  )  [protected]
 

Method to determine the current running state of the setting page's ActiveScheduler level.

Returns:
EFalse only if the CActiveSheduler level is not running
virtual IMPORT_C void CAknSettingPage::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.

Parameters:
aWriteSteam  A connected write stream

Reimplemented in CAknCheckBoxSettingPage, CAknDateSettingPage, CAknTimeSettingPage, CAknDurationSettingPage, CAknTimeOffsetSettingPage, CAknIpFieldSettingPage, CAknPasswordSettingPage, CAknAlphaPasswordSettingPage, CAknNumericPasswordSettingPage, CAknPopupSettingPage, CAknRadioButtonSettingPage, CAknSliderSettingPage, CAknTextSettingPage, CAknIntegerSettingPage, and CAknVolumeSettingPage.


Field Documentation

MAknSettingPageObserver* CAknSettingPage::iSettingPageObserver [protected]
 

Pointer to setting page observer; may be NULL.

TInt CAknSettingPage::iUpdateMode [protected]
 

Hold the update mode passed in the constructor.


The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top