CEikStatusPaneModelBase Class Reference

class CEikStatusPaneModelBase : public CBase

Base class for status pane model.

Inherits from

  • CEikStatusPaneModelBase
Public Member Functions
~CEikStatusPaneModelBase()
voidAknLayoutRefresh()
TBool AknLayoutUsed(TInt)
CEikStatusPaneLayout *CurrentLayout()
IMPORT_C TIntCurrentLayoutResId()
CEikStatusPaneSetInit *PaneInits()
IMPORT_C voidSetLayoutL(TInt, TBool)
Protected Member Functions
CEikStatusPaneModelBase(CEikonEnv &)
IMPORT_C voidBaseConstructL(TInt)
TBool IsLegalId(TInt)
CIdSet *LegalIds()
IMPORT_C CEikStatusPaneLayout *LoadLayoutL(TInt)
NONSHARABLE_CLASS(CIdLayoutPair)
Private Member Functions
voidCheckLayoutL(CEikStatusPaneLayout *)
CEikStatusPaneLayout *Layout(TInt)
NONSHARABLE_CLASS(TLayoutChecker)
IMPORT_C voidReserved_1()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Protected Member Type Definitions
typedef CArrayFixFlat< TInt > CIdSet
typedef CArrayPtrFlat< CIdLayoutPair > CLayoutIdSet
Protected Attributes
TInt iCurrentResId
CEikonEnv &iEikEnv
CLayoutIdSet *iLayouts
Private Attributes
CEikStatusPaneLayout *iCurrentLayout
CIdSet *iLegalIds
CEikStatusPaneSetInit *iPanes

Constructor & Destructor Documentation

CEikStatusPaneModelBase(CEikonEnv &)

IMPORT_CCEikStatusPaneModelBase(CEikonEnv &aEikEnv)[protected]

Constructor.

Parameters

CEikonEnv & aEikEnvAn environment for creating controls.

~CEikStatusPaneModelBase()

IMPORT_C~CEikStatusPaneModelBase()

Destructor.

Member Functions Documentation

AknLayoutRefresh()

voidAknLayoutRefresh()

Re-reads layout data for all existing layouts from AknLayout system. The data may have to be refreshed when e.g. screen resolution, orientation or language variant layout is changed on the fly.

Since
2.8

AknLayoutUsed(TInt)

TBool AknLayoutUsed(TIntaLayoutId)

This method tells if given layout is using AknLayout system for placing and sizing the statuspane subpanes.

Since
2.8

Parameters

TInt aLayoutIdLayout which layout type is wanted to be known.

BaseConstructL(TInt)

IMPORT_C voidBaseConstructL(TIntaCoreResId)[protected]

Base constructor for 2nd phase construction.

Parameters

TInt aCoreResIdStatus pane core resource id.

CheckLayoutL(CEikStatusPaneLayout *)

voidCheckLayoutL(CEikStatusPaneLayout *aLayout)[private]

Checks given layout.

Parameters

CEikStatusPaneLayout * aLayoutLayout to be checked.

CurrentLayout()

CEikStatusPaneLayout *CurrentLayout()const [inline]

Gets the current layout.

CurrentLayoutResId()

IMPORT_C TIntCurrentLayoutResId()const

Gets the current layout resource id.

IsLegalId(TInt)

TBool IsLegalId(TIntaLayoutResId)const [protected]

Checks if given layout id is allowed.

Parameters

TInt aLayoutResIdLayout id to be checked.

Layout(TInt)

CEikStatusPaneLayout *Layout(TIntaLayoutResId)[private]

Gets given layout.

Parameters

TInt aLayoutResIdLayout resource id.

LegalIds()

CIdSet *LegalIds()const [protected, inline]

Returns set of legal layout ids.

LoadLayoutL(TInt)

IMPORT_C CEikStatusPaneLayout *LoadLayoutL(TIntaLayoutResId)[protected]

Loads given layout from resource.

Parameters

TInt aLayoutResIdLayout resource id.

NONSHARABLE_CLASS(CIdLayoutPair)

NONSHARABLE_CLASS(CIdLayoutPair)[protected, inline]

Internal class to CEikStatusPaneModel, which ties layout resource IDs to layout structures.

Parameters

CIdLayoutPair

NONSHARABLE_CLASS(TLayoutChecker)

NONSHARABLE_CLASS(TLayoutChecker)[private, inline]

Parameters

TLayoutChecker

PaneInits()

CEikStatusPaneSetInit *PaneInits()const [inline]

Gets the pane inits of the status pane.

Reserved_1()

IMPORT_C voidReserved_1()[private, virtual]

SetLayoutL(TInt, TBool)

IMPORT_C voidSetLayoutL(TIntaLayoutResId,
TBoolaChangeStatusPaneNow = ETrue
)[virtual]

Sets the status pane layout

Parameters

TInt aLayoutResIdResource id of the status pane layout.
TBool aChangeStatusPaneNow = ETrueA flag to indicate immediate status pane layout change.

Member Type Definitions Documentation

Typedef CIdSet

typedef CArrayFixFlat< TInt >CIdSet[protected]

Typedef CLayoutIdSet

typedef CArrayPtrFlat< CIdLayoutPair >CLayoutIdSet[protected]

Member Data Documentation

CEikStatusPaneLayout * iCurrentLayout

CEikStatusPaneLayout *iCurrentLayout[private]

TInt iCurrentResId

TInt iCurrentResId[protected]

CEikonEnv & iEikEnv

CEikonEnv &iEikEnv[protected]

CLayoutIdSet * iLayouts

CLayoutIdSet *iLayouts[protected]

CIdSet * iLegalIds

CIdSet *iLegalIds[private]

CEikStatusPaneSetInit * iPanes

CEikStatusPaneSetInit *iPanes[private]