CPbk2ViewGraph Class Reference

class CPbk2ViewGraph : public CBase

Phonebook 2 view navigation graph class.

Inherits from

Constructor & Destructor Documentation

CPbk2ViewGraph()

CPbk2ViewGraph()[private, inline]

~CPbk2ViewGraph()

~CPbk2ViewGraph()

Destructor.

Member Functions Documentation

AddViewNodeL(CPbk2ViewNode *)

IMPORT_C voidAddViewNodeL(CPbk2ViewNode *aNode)

Appends and links aNode to the view graph structure. Takes ownership of the node.

Parameters

CPbk2ViewNode * aNodeNode to add to the view graph.

AppendNodesFromResourceL(TResourceReader &)

voidAppendNodesFromResourceL(TResourceReader &aResReader)[private]

Parameters

TResourceReader & aResReader

ConstructL(TResourceReader &)

voidConstructL(TResourceReader &aResReader)[private]

Parameters

TResourceReader & aResReader

Count()

TInt Count()const [inline]

Returns view graph node count.

FindNodeWithViewId(TUid)

IMPORT_C CPbk2ViewNode *FindNodeWithViewId(TUidaViewId)const

Returns node with given resource id, NULL if not found.

Parameters

TUid aViewIdId of the node to found.

FindViewsInTabGroupL(TPbk2TabGroupId)

IMPORT_C RPointerArray< CPbk2ViewNode >FindViewsInTabGroupL(TPbk2TabGroupIdaTabGroupId)const

Finds and returns the ids of the views that are in the specified tab group. Returned array is sorted in the proper tab group ordering of the views.

Parameters

TPbk2TabGroupId aTabGroupIdId of the tab group to investigate.

LinkNodesWithTransitions()

voidLinkNodesWithTransitions()[private]

ModifyViewGraphL(TResourceReader &)

IMPORT_C voidModifyViewGraphL(TResourceReader &aResReader)

Modifies existing view graph. Updates transitions and appends new view node according to given resource reader.

Parameters

TResourceReader & aResReaderResource reader pointed to a PBK2_VIEW_GRAPH resource.

NewL(TResourceReader &)

IMPORT_C CPbk2ViewGraph *NewL(TResourceReader &aResReader)[static]

Creates a new view graph from a PBK2_VIEW_GRAPH resource.

Parameters

TResourceReader & aResReaderResource reader pointed to a PBK2_VIEW_GRAPH resource.

operator[](TInt)

const CPbk2ViewNode &operator[](TIntaIndex)const [inline]

Returns view graph node at aIndex.

Parameters

TInt aIndexIndex to query.

Member Type Definitions Documentation

Typedef CPbk2ViewNodeArray

typedef CArrayPtrFlat< CPbk2ViewNode >CPbk2ViewNodeArray[private]

Member Data Documentation

CPbk2ViewNodeArray * iNodes

CPbk2ViewNodeArray *iNodes[private]