CAknMfneSettingPage Class Reference

API published in: S60 1st Ed

Link against: avkon.lib

Capability Information

Required Capabilities

None


#include <aknmfnesettingpage.h>

Inherits CAknSettingPage.

Inherited by CAknDateSettingPage, CAknDurationSettingPage, CAknIpFieldSettingPage, CAknTimeOffsetSettingPage, and CAknTimeSettingPage.


Detailed Description

This class is used as the base for the date, time, duration and Ip editor setting page types.

It performs all the layout.


Public Member Functions

IMPORT_C void  HandlePointerEventL (const TPointerEvent &aPointerEvent)
  From CCoeControl.
virtual IMPORT_C  ~CAknMfneSettingPage ()
  Destructor.

Protected Member Functions

IMPORT_C  CAknMfneSettingPage (TInt ResourceId)
  Constructor using purely Setting page resource.
IMPORT_C  CAknMfneSettingPage (const TDesC *aSettingTitleText, TInt aSettingNumber, TInt aControlType, TInt aEditorResourceId, TInt aSettingPageResourceId)
  Constructor that allows separate setting page and editor resources.
virtual IMPORT_C void  SizeChanged ()
  Framework method called when the control needs to be re-laid out.
IMPORT_C void  Draw (const TRect &aRect) const
  Draws the control.
IMPORT_C CEikMfne Mfne () const
  Type-specific access to control.
IMPORT_C void  CheckAndSetDataValidity ()
  Implementation of of validity framework method for mfnes.
virtual IMPORT_C void  HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType)
  From MCoeControlObserver: Acts upon changes in the hosted control's state.
virtual IMPORT_C void  ConstructL ()
  2nd stage construction.
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.

Protected Attributes

CAknButton *  iIncreaseValueButton
CAknButton *  iDecreaseValueButton

Constructor & Destructor Documentation

virtual IMPORT_C CAknMfneSettingPage::~CAknMfneSettingPage  )  [virtual]
 

Destructor.

IMPORT_C CAknMfneSettingPage::CAknMfneSettingPage TInt  ResourceId  )  [protected]
 

Constructor using purely Setting page resource.

Parameters:
aResourceId  Setting page resource Id
IMPORT_C CAknMfneSettingPage::CAknMfneSettingPage const TDesC *  aSettingTitleText,
TInt  aSettingNumber,
TInt  aControlType,
TInt  aEditorResourceId,
TInt  aSettingPageResourceId
[protected]
 

Constructor that allows separate setting page and editor resources.

Parameters:
aSettingTitleText  Text at top of setting pane ; Externally owned
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)

Member Function Documentation

IMPORT_C void CAknMfneSettingPage::CheckAndSetDataValidity  )  [protected, virtual]
 

Implementation of of validity framework method for mfnes.

Checks if the current focused field in the mfne is valid and sets the setting page validity accordingly.

This method is called in order for the softkeys to be updated

Reimplemented from CAknSettingPage.

IMPORT_C CCoeControl* CAknMfneSettingPage::ComponentControl TInt  anIndex  )  const [protected]
 

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

Parameters:
aIndex  index at which to return control

Reimplemented from CAknSettingPage.

virtual IMPORT_C void CAknMfneSettingPage::ConstructL  )  [protected, virtual]
 

2nd stage construction.

This creates the editing buttons in touch enabled builds.

Reimplemented from CAknSettingPage.

Reimplemented in CAknDateSettingPage, CAknTimeSettingPage, CAknDurationSettingPage, CAknTimeOffsetSettingPage, and CAknIpFieldSettingPage.

IMPORT_C TInt CAknMfneSettingPage::CountComponentControls  )  const [protected]
 

Standard CCoeControl routine to return the number of componentn controls.

Parameters:
aIndex  index at which to return control

Reimplemented from CAknSettingPage.

IMPORT_C void CAknMfneSettingPage::Draw const TRect &  aRect  )  const [protected]
 

Draws the control.

Framework method

Reimplemented from CAknSettingPage.

virtual IMPORT_C void CAknMfneSettingPage::HandleControlEventL CCoeControl *  aControl,
TCoeEvent  aEventType
[protected, virtual]
 

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

This observer method performs

  • Updates the value if EUpdateWhenChanged is the setting page's update mode
  • updates CBA labels depending on the data validity
Parameters:
aControl  The control changing its state (not used)
aEventType  The type of control event

Reimplemented from CAknSettingPage.

IMPORT_C void CAknMfneSettingPage::HandlePointerEventL const TPointerEvent &  aPointerEvent  ) 
 

From CCoeControl.

Handles pointer events

Reimplemented from CAknSettingPage.

Reimplemented in CAknDateSettingPage, CAknTimeSettingPage, CAknDurationSettingPage, CAknTimeOffsetSettingPage, and CAknIpFieldSettingPage.

IMPORT_C CEikMfne* CAknMfneSettingPage::Mfne  )  const [protected]
 

Type-specific access to control.

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

Framework method called when the control needs to be re-laid out.

Reimplemented from CAknSettingPage.


Field Documentation

CAknButton* CAknMfneSettingPage::iDecreaseValueButton [protected]
 
CAknButton* CAknMfneSettingPage::iIncreaseValueButton [protected]
 

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

Copyright © Nokia Corporation 2001-2008
Back to top