ChspsDomNode Class Reference
class ChspsDomNode : public CBase |
Class represents a single node in the document tree.
hspsdomdocument.lib
- Since
- S60 5.0
Constructor & Destructor Documentation
ChspsDomNode(ChspsDomStringPool &)
Member Functions Documentation
AddChildL(ChspsDomNode *)
Child nodes of this node are needed to be able to traverse the document.
AddChildL(ChspsDomNode *, TInt)
Child nodes of this node are needed to be able to traverse the document.
Parameters
ChspsDomNode * aNode | Node owns it's childs. |
TInt aIndex | Index in list where the node is added. |
AppendPCDataL(const TDesC8 &)
IMPORT_C void | AppendPCDataL | ( | const TDesC8 & | aPCData | ) | |
Append PCData into node. Thus it is possible to have "<root>a <first/> c <second/> e </root>" PCData.
Parameters
const TDesC8 & aPCData | UTF-8 encoded parsed character data. |
AttributeList()
Node's attributes exist in a list.
AttributeValue(const TDesC8 &)
IMPORT_C const TDesC8 & | AttributeValue | ( | const TDesC8 & | aAttribute | ) | const |
Returns value of given attribute.
Parameters
const TDesC8 & aAttribute | Name of the attribute. |
CloneL(ChspsDomStringPool &, const TBool)
Makes a clone from this node and it's child nodes.
Parameters
ChspsDomStringPool & aStringPool | A new string pool. |
const TBool aFastClone = EFalse | If ETrue, then fast mode cloning is used. |
CloneWithoutKidsL(ChspsDomStringPool &)
Makes a clone only from this node.
Construct2L()
void | Construct2L | ( | ) | [private] |
ConstructL(const TDesC8 &, const TDesC8 &)
void | ConstructL | ( | const TDesC8 & | aName, |
| const TDesC8 & | aNS |
| ) | [private] |
By default Symbian 2nd phase constructor is private.
ConstructL(const TInt, const TInt)
void | ConstructL | ( | const TInt | aName, |
| const TInt | aNS |
| ) | [private] |
By default Symbian 2nd phase constructor is private.
CreateRefNodeL()
Contructs a ref node from this node and its child's.
DeleteAttributeList()
IMPORT_C void | DeleteAttributeList | ( | ) | |
Deletes attributes when they are not needed anymore. I.e. UIEngine has copied them into property list.
DeleteChild(ChspsDomNode *)
Removes node from the child list and frees memory allocated for a child node and it descendants.
DescendantCount()
IMPORT_C TInt | DescendantCount | ( | ) | const |
Recursive function to count all child nodes belonging to this node.
ExternalizeL(RWriteStream &)
InternalizeL(RReadStream &)
IsRefNode()
IMPORT_C TBool | IsRefNode | ( | ) | const |
Check if this node is referring to some global node.
ItemIndex(const MhspsDomListItem &)
Get the node unique identifier.
LayoutNode()
IMPORT_C ChspsNode * | LayoutNode | ( | ) | |
Returns pointer to associated layout node.
Name()
Documented in ChspsDomListItem::Name
Namespace()
IMPORT_C const TDesC8 & | Namespace | ( | ) | |
Get the namespace of this node.
NewL(const TDesC8 &, const TDesC8 &, ChspsDomStringPool &)
NewL(const TInt, const TInt, ChspsDomStringPool &)
Parameters
const TInt aName | Name of node (string pool index). |
const TInt aNS | Namespace (string pool index). |
ChspsDomStringPool & aStringPool | Attached string pool. |
NewL(RReadStream &, ChspsDomStringPool &)
Two-phased stream constructor.
NodeId()
IMPORT_C TInt | NodeId | ( | ) | const |
Get the node unique identifier.
PCData()
IMPORT_C const TDesC8 & | PCData | ( | ) | |
Parent()
Node's parent is enquered e.g to traverse the document.
ReplaceChildL(ChspsDomNode *, ChspsDomNode *)
Replaces a child node with the other node. Memory allocated for the node is freed.
SetContentType(const TContentType &)
IMPORT_C void | SetContentType | ( | const TContentType & | aContentType | ) | |
SetLayoutNode(ChspsNode *)
IMPORT_C void | SetLayoutNode | ( | ChspsNode * | aNode | ) | |
Sets pointer to associated layout node.
Parameters
ChspsNode * aNode | Pointer to associated layout node. |
SetNodeId(const TInt)
IMPORT_C void | SetNodeId | ( | const TInt | aNodeId | ) | |
Node id is for a uiengine use.
Parameters
const TInt aNodeId | Unique identifier. |
SetPCDataL(const TDesC8 &)
IMPORT_C void | SetPCDataL | ( | const TDesC8 & | aPCData | ) | |
Set parsed character data.
Parameters
const TDesC8 & aPCData | UTF-8 encoded parsed character data. |
SetParent(ChspsDomNode *)
Node need to know it's parent.
SetRefNode(TBool)
IMPORT_C void | SetRefNode | ( | TBool | aRefNode = ETrue | ) | |
Mark this node as a reference node.
Parameters
TBool aRefNode = ETrue | ETrue if node is a reference node. |
Size()
Documented in ChspsDomListItem::Size
StringPool()
Get reference to the dom's string pool.
Member Data Documentation
ChspsDomList * iAttributeList
ChspsDomList * iChildList
TContentType
iContentType
ChspsNode * iLayoutNode
ChspsNode * | iLayoutNode | [private] |
ChspsDomNode * iParentNode
ChspsDomStringPool & iStringPool
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.