MXCFWTree Class Reference

class MXCFWTree

XCFW Tree interface Provides access to tree functions

XCFW.lib
Since
Series 60 3.1

Member Functions Documentation

AddNodeL(CGECOObjectBase *, MXCFWNode *, MXCFWNode *)

MXCFWNode * AddNodeL ( CGECOObjectBase * aData,
MXCFWNode * aParent,
MXCFWNode * aInsertBefore
) [pure virtual]
Adds new node to content tree. Returns reference to added node. Three overloads are provided to allow use without parent when creating root, or use without insertbefore reference to allow adding nodes as last child of the given parent. aData ownership is transferred at the beginning of the method!
Since
Series60 3.1

Parameters

CGECOObjectBase * aData The CXCFWObjectParser (derived) object to be added to tree
MXCFWNode * aParent Parent node for the added node
MXCFWNode * aInsertBefore Reference node - new node will be inserted before this node in the siblings of given parent.

AddNodeL(CGECOObjectBase *, MXCFWNode *)

MXCFWNode * AddNodeL ( CGECOObjectBase * aData,
MXCFWNode * aParent
) [pure virtual]

Parameters

CGECOObjectBase * aData
MXCFWNode * aParent

AddNodeL(CGECOObjectBase *)

MXCFWNode * AddNodeL ( CGECOObjectBase * aData ) [pure virtual]

Parameters

CGECOObjectBase * aData

DTDName()

const TDesC & DTDName ( ) [pure virtual]

Returns name of localization DTD file (by default without path)

GetChildNodesL(MXCFWNode *, RNodeArray &)

void GetChildNodesL ( MXCFWNode * aParent,
RNodeArray & aNodeList
) [pure virtual]
Returns child nodes of the given parentm from tree
Since
Series60 3.1

Parameters

MXCFWNode * aParent Parent node whose child nodes will be returned
RNodeArray & aNodeList Reference to array where child nodes are added

GetNodesOfTypeL(const TDesC &, RNodeArray &, MXCFWNode *, TBool)

void GetNodesOfTypeL ( const TDesC & aType,
RNodeArray & aNodeList,
MXCFWNode * aParent,
TBool aRecursive
) [pure virtual]
Returns nodes of certain type from tree
Since
Series60 3.1

Parameters

const TDesC & aType Node type identifier that corresponds to a XML tag
RNodeArray & aNodeList Reference to array where found nodes are added
MXCFWNode * aParent Parent node where the search is started from
TBool aRecursive Determines if search is done recursively (finds also grandchildren)

IsLocked()

TBool IsLocked ( ) [pure virtual]

Returns tree lock status

MoveNodeL(MXCFWNode *, MXCFWNode *, MXCFWNode *)

void MoveNodeL ( MXCFWNode * aNodeToMove,
MXCFWNode * aNewParent,
MXCFWNode * aInsertBefore
) [pure virtual]
Moves a node to another position in tree
Since
Series60 3.1

Parameters

MXCFWNode * aNodeToMove Node that is to be repositioned
MXCFWNode * aNewParent New parent for node to be repositioned
MXCFWNode * aInsertBefore New node will be inserted before this node among the given parents children

Nodes()

RNodeArray & Nodes ( ) [pure virtual]
Returns all tree nodes in an array of MXCFWNode pointers NOTE: node order does not necessarily reflect the current order in tree, as nodes may have been moved.
Since
Series60 3.1

RemoveNodeL(MXCFWNode *)

void RemoveNodeL ( MXCFWNode * aNodeToRemove ) [pure virtual]
Removes a node from the tree
Since
Series60 3.1

Parameters

MXCFWNode * aNodeToRemove Node to be removed from tree

Root()

MXCFWNode * Root ( ) [pure virtual]
Returns root node of the tree
Since
Series60 3.1

SetDTDNameL(const TDesC &)

void SetDTDNameL ( const TDesC & aName ) [pure virtual]

Sets localization dtd name for this content tree This information is used when saving the tree if no DTD is specified in SaveL command

Parameters

const TDesC & aName DTD file name (by default without path)

SetLocked(TBool)

void SetLocked ( TBool aLockStatus ) [pure virtual]

Sets tree lock status If tree is locked, nodes cannot be added/moved/removed

Parameters

TBool aLockStatus sets the lock status