MSimpleElement Class Reference
Member Functions Documentation
AddAttrL(const TDesC8 &, const TDesC &)
void | AddAttrL | ( | const TDesC8 & | aName, |
| const TDesC & | aValue |
| ) | [pure virtual] |
Adds an attribute. If attribute is already existing, the value of the attribute will be replaced.
Parameters
const TDesC8 & aName | Name of the attribute to be added. |
const TDesC & aValue | Value of the attribute to be added. |
AddSimpleElementL(const TDesC8 &, const TDesC8 &)
Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element.
AddSimpleElementL(const TDesC8 &)
Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element. Note: Element is created with no specific namespace, default namespace of some of the upper level elements are in effect if there is such a namespace.
AttrValue(const TDesC8 &)
Gets the value of the given attribute.
AttrValueLC(const TDesC8 &)
Gets the value of the given attribute.
Close()
void | Close | ( | ) | [pure virtual] |
Destroy this element entity and all its descendant elements.
- Since
- S60 3.2
ContentUnicodeL()
HBufC * | ContentUnicodeL | ( | ) | [pure virtual] |
Getter for the content of the element, unicode version.
DefNamespaceL()
Getter for Element's own default namespace.
DetachSimpleL()
void | DetachSimpleL | ( | ) | [pure virtual] |
Detach the element from its parent. Notice that the current element instance should not be used after this method is called successfully. Leaves with KErrNotFound if parent was not set and nothing to detach.
HasContent()
TBool
| HasContent | ( | ) | [pure virtual] |
Method for checking if the element has any content within.
LocalName()
const TDesC8 & | LocalName | ( | ) | [pure virtual] |
Getter for Element's local name. LocalName and Namespace are given in factory method.
- Since
- S60 3.2
RemoveSimpleElement(const TDesC8 &, const TDesC8 &)
void | RemoveSimpleElement | ( | const TDesC8 & | aNsUri, |
| const TDesC8 & | aLocalName |
| ) | [pure virtual] |
Remove an element from the childs.
SetContentUnicodeL(const TDesC &)
void | SetContentUnicodeL | ( | const TDesC & | aContent | ) | [pure virtual] |
Sets the content to the element. Old content is overwritten.
SimpleAttributesL(RPointerArray< MSimpleAttribute > &)
From MSimpleElement Gets all the attributes of this element in an array.
SimpleElementsL(RPointerArray< MSimpleElement > &)
Getting the child elements of this element.
SimpleParentL()
Gets the parent element of this element.
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.