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 void AddViewNodeL ( CPbk2ViewNode * aNode )

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

Parameters

CPbk2ViewNode * aNode Node to add to the view graph.

AppendNodesFromResourceL(TResourceReader &)

void AppendNodesFromResourceL ( TResourceReader & aResReader ) [private]

Parameters

TResourceReader & aResReader

ConstructL(TResourceReader &)

void ConstructL ( TResourceReader & aResReader ) [private]

Parameters

TResourceReader & aResReader

Count()

TInt Count ( ) const [inline]

Returns view graph node count.

FindNodeWithViewId(TUid)

IMPORT_C CPbk2ViewNode * FindNodeWithViewId ( TUid aViewId ) const

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

Parameters

TUid aViewId Id of the node to found.

FindViewsInTabGroupL(TPbk2TabGroupId)

IMPORT_C RPointerArray < CPbk2ViewNode > FindViewsInTabGroupL ( TPbk2TabGroupId aTabGroupId ) 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 aTabGroupId Id of the tab group to investigate.

LinkNodesWithTransitions()

void LinkNodesWithTransitions ( ) [private]

ModifyViewGraphL(TResourceReader &)

IMPORT_C void ModifyViewGraphL ( TResourceReader & aResReader )

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

Parameters

TResourceReader & aResReader Resource 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 & aResReader Resource reader pointed to a PBK2_VIEW_GRAPH resource.

operator[](TInt)

const CPbk2ViewNode & operator[] ( TInt aIndex ) const [inline]

Returns view graph node at aIndex.

Parameters

TInt aIndex Index to query.

Member Type Definitions Documentation

Typedef CPbk2ViewNodeArray

typedef CArrayPtrFlat < CPbk2ViewNode > CPbk2ViewNodeArray [private]

Member Data Documentation

CPbk2ViewNodeArray * iNodes

CPbk2ViewNodeArray * iNodes [private]