CPbk2TabGroupContainer Class Reference

class CPbk2TabGroupContainer : public CBase

Phonebook 2 tab group container. Responsible for creating Phonebook 2 application tab groups and managing the tab groups. The tab groups are created from the view graph data. Clients may also add new tab groups to the container.

Inherits from

Nested Classes and Structures

Constructor & Destructor Documentation

CPbk2TabGroupContainer(MPbk2ViewExplorer &, MPbk2TabGroupContainerCallback &)

CPbk2TabGroupContainer ( MPbk2ViewExplorer & aViewExplorer,
MPbk2TabGroupContainerCallback & aCallback
) [private]

Parameters

MPbk2ViewExplorer & aViewExplorer
MPbk2TabGroupContainerCallback & aCallback

~CPbk2TabGroupContainer()

~CPbk2TabGroupContainer ( )

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private, inline]

CreateTabGroupsL()

void CreateTabGroupsL ( ) [private]

DoCalculateTabGroupWidth(TInt)

TInt DoCalculateTabGroupWidth ( TInt aViewCount ) const [private]

Parameters

TInt aViewCount

DoReadViewNodeTabResourcesL(const CPbk2ViewNode &, CAknTabGroup &, TInt)

void DoReadViewNodeTabResourcesL ( const CPbk2ViewNode & aNode,
CAknTabGroup & aAknTabGroup,
TInt aViewCount
) [private]

Parameters

const CPbk2ViewNode & aNode
CAknTabGroup & aAknTabGroup
TInt aViewCount

FindTabGroupWithIdL(TPbk2TabGroupId)

CAknTabGroup & FindTabGroupWithIdL ( TPbk2TabGroupId aTabGroupId ) [private]

Parameters

TPbk2TabGroupId aTabGroupId

HandleNaviDecoratorEventL(TInt)

void HandleNaviDecoratorEventL ( TInt aEventID ) [private]

Parameters

TInt aEventID

HandleNavigationKeyEventL(const TKeyEvent &, TEventCode)

IMPORT_C TBool HandleNavigationKeyEventL ( const TKeyEvent & aKeyEvent,
TEventCode aType
)

Handles navigation key events.

Parameters

const TKeyEvent & aKeyEvent Key event to handle.
TEventCode aType Type of the key event.

NewL(MPbk2ViewExplorer &, MPbk2TabGroupContainerCallback &)

IMPORT_C CPbk2TabGroupContainer * NewL ( MPbk2ViewExplorer & aViewExplorer,
MPbk2TabGroupContainerCallback & aCallback
) [static]

Creates a new instance of this class.

Parameters

MPbk2ViewExplorer & aViewExplorer Phonebook 2 view explorer.
MPbk2TabGroupContainerCallback & aCallback Tab group callback.

SkinTabGroupsL()

void SkinTabGroupsL ( ) [private]

TabChangedL(TInt)

void TabChangedL ( TInt aIndex ) [private]

Parameters

TInt aIndex

TabGroupFromViewId(TInt)

IMPORT_C CAknNavigationDecorator * TabGroupFromViewId ( TInt aId ) const

Returns the tab group associated with given id.

Parameters

TInt aId Id of the tab group.

TabIcons()

IMPORT_C CPbk2IconInfoContainer & TabIcons ( ) const

Returns the tab icons.

Member Data Documentation

MPbk2TabGroupContainerCallback & iCallback

MPbk2TabGroupContainerCallback & iCallback [private]

CPbk2IconInfoContainer * iTabIcons

CPbk2IconInfoContainer * iTabIcons [private]

MPbk2ViewExplorer & iViewExplorer

MPbk2ViewExplorer & iViewExplorer [private]

RPointerArray< CPbk2TabGroupEntry > iViewTabGroups

RPointerArray < CPbk2TabGroupEntry > iViewTabGroups [private]