CSenDomFragmentBase Class Reference

class CSenDomFragmentBase : public CSenFragmentBase
Class implements DOM fragment functionality The implementation further extends CSenBaseFragment functionality. In DOM fragment, all child elements are parsed into separate element objects. This makes it possible to reference any child which offer methods declared in XML element interface. Any such element can also be easily extracted (detached) from this root DOM fragment. SenFragment.dll
Since
Series60 4.0

Inherits from

Public Member Functions
~CSenDomFragmentBase()
IMPORT_C voidAddAttributesL(const RAttributeArray &)
IMPORT_C RSenDocument &AsDocumentL()
IMPORT_C TXmlEngElementAsElementL()
IMPORT_C HBufC8 *AsXmlL()
IMPORT_C HBufC *AsXmlUnicodeL()
IMPORT_C TBoolConsistsOfL(CSenFragmentBase &)
IMPORT_C TPtrC8ContentL()
IMPORT_C voidExpandL(const RTagInfo &, const RAttributeArray &, TInt)
IMPORT_C TXmlEngElementExtractElement()
IMPORT_C TAny *GetExtendedInterface(const TInt32)
IMPORT_C TPtrC8LocalName()
IMPORT_C TXmlEngNamespaceNamespace(const TDesC8 &)
IMPORT_C CSenDomFragmentBase *NewL()
IMPORT_C CSenDomFragmentBase *NewL(const TXmlEngElement &)
IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &)
IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &, const TDesC8 &)
IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)
IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &)
IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &, RSenDocument &)
IMPORT_C TPtrC8NsPrefix()
IMPORT_C TPtrC8NsUri()
IMPORT_C voidOnContentL(const TDesC8 &, TInt)
IMPORT_C voidOnDelegateParsingL(CSenFragmentBase &)
IMPORT_C voidOnDelegateParsingL(const RTagInfo &, const RAttributeArray &, TInt)
IMPORT_C voidOnEndDocumentL(TInt)
IMPORT_C voidOnEndElementL(const RTagInfo &, TInt)
IMPORT_C voidOnEndPrefixMappingL(const RString &, TInt)
IMPORT_C voidOnError(TInt)
IMPORT_C voidOnIgnorableWhiteSpaceL(const TDesC8 &, TInt)
IMPORT_C voidOnProcessingInstructionL(const TDesC8 &, const TDesC8 &, TInt)
IMPORT_C voidOnResumeParsingFromL(const RTagInfo &, TInt)
IMPORT_C voidOnSkippedEntityL(const RString &, TInt)
IMPORT_C voidOnStartDocumentL(const RDocumentParameters &, TInt)
IMPORT_C voidOnStartElementL(const RTagInfo &, const RAttributeArray &, TInt)
IMPORT_C voidOnStartPrefixMappingL(const RString &, const RString &, TInt)
IMPORT_C voidOnWriteEndElementL(const RTagInfo &)
IMPORT_C voidOnWriteStartElementL(const RTagInfo &, const RAttributeArray &)
IMPORT_C voidResetContentL()
IMPORT_C voidSetContentHandler(CSenFragmentBase &)
IMPORT_C voidSetOwner(CSenFragmentBase &)
IMPORT_C voidWriteAsXMLToL(RWriteStream &)
Protected Member Functions
CSenDomFragmentBase()
IMPORT_C voidAddNamespacesL()
IMPORT_C voidBaseConstructL()
IMPORT_C voidBaseConstructL(const TXmlEngElement &)
IMPORT_C voidBaseConstructL(const TDesC8 &)
IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &)
IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)
IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &)
IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &, RSenDocument &)
IMPORT_C TBoolConsistsOfL(TXmlEngElement &, TXmlEngElement &)
IMPORT_C TPtrC8ContentOf(const TDesC8 &)
voidRenameL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
voidRenameL(const TDesC8 &, const TDesC8 &)
voidRenameLocalNameL(const TDesC8 &)
voidRenameNamespaceL(const TDesC8 &)
voidRenameNamespaceL(const TDesC8 &, const TDesC8 &)
voidRenamePrefixL(const TDesC8 &)
IMPORT_C TXmlEngElementSetContentOfL(const TDesC8 &, const TDesC8 &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSenFragmentBase::AddAttributesL(const RAttributeArray &)
CSenFragmentBase::AddAttributesToElementL(TXmlEngElement,const RAttributeArray &)
CSenFragmentBase::AddContentL(const TDesC8 &)
CSenFragmentBase::BaseConstructL(TXmlEngElement &,RSenDocument &)
CSenFragmentBase::BaseConstructL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenFragmentBase::BaseConstructL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &,TXmlEngElement &)
CSenFragmentBase::BaseConstructL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &,TXmlEngElement &,RSenDocument &)
CSenFragmentBase::CSenFragmentBase()
CSenFragmentBase::NewL(TXmlEngElement &,RSenDocument &)
CSenFragmentBase::NewL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenFragmentBase::NewL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &,TXmlEngElement &)
CSenFragmentBase::NewL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &,TXmlEngElement &,RSenDocument &)
CSenFragmentBase::OnDelegateParsingL(const RTagInfo &,const RAttributeArray &,TInt)
CSenFragmentBase::OnEndElementL(const RTagInfo &,TInt)
CSenFragmentBase::OnResumeParsingFromL(const RTagInfo &,TInt)
CSenFragmentBase::OnStartElementL(const RTagInfo &,const RAttributeArray &,TInt)
CSenFragmentBase::OnWriteEndElementL(const RTagInfo &)
CSenFragmentBase::OnWriteStartElementL(const RTagInfo &,const RAttributeArray &)
CSenFragmentBase::SetContentL(const TDesC8 &)
CSenFragmentBase::SetDocument(RSenDocument &)
CSenFragmentBase::StartSavingContent()
CSenFragmentBase::~CSenFragmentBase()
Protected Attributes
CSenDomFragmentBase *ipDomDelegate
Inherited Attributes
CSenFragmentBase::iDocument
CSenFragmentBase::iElement
CSenFragmentBase::iState
CSenFragmentBase::ipContentBuf
CSenFragmentBase::ipContentWriteStream
CSenFragmentBase::ipDelegate
CSenFragmentBase::ipNamespaceArray
CSenFragmentBase::ipOwner
CSenFragmentBase::ipParser

Constructor & Destructor Documentation

CSenDomFragmentBase()

IMPORT_CCSenDomFragmentBase()[protected]

C++ default constructor.

~CSenDomFragmentBase()

IMPORT_C~CSenDomFragmentBase()[virtual]

Destructor.

Member Functions Documentation

AddAttributesL(const RAttributeArray &)

IMPORT_C voidAddAttributesL(const RAttributeArray &aAttrs)[virtual]
Sets the attributes for the fragment.
Since
Series60 4.0

Parameters

const RAttributeArray & aAttrs

AddNamespacesL()

IMPORT_C voidAddNamespacesL()[protected, virtual]
Adds namespaces from internal array for the fragment.
Since
Series60 4.0

AsDocumentL()

IMPORT_C RSenDocument &AsDocumentL()[virtual]

Returns the current XML element of this fragment. If element has not been set, this method will initialize new, un-initialized element. Method leaves with if there is not enough memory (OOM)

AsElementL()

IMPORT_C TXmlEngElementAsElementL()[virtual]

Returns the current XML element of this fragment. If element has not been set, this method will initialize new, un-initialized element. Method leaves with if there is not enough memory (OOM)

AsXmlL()

IMPORT_C HBufC8 *AsXmlL()[virtual]
Gets the fragment data as an UTF-8 form XML.
Since
Series60 4.0

AsXmlUnicodeL()

IMPORT_C HBufC *AsXmlUnicodeL()[virtual]
Gets the fragment data as an unicode XML.
Since
Series60 4.0

BaseConstructL()

IMPORT_C voidBaseConstructL()[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 4.0

BaseConstructL(const TXmlEngElement &)

IMPORT_C voidBaseConstructL(const TXmlEngElement &aElement)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 4.0

Parameters

const TXmlEngElement & aElementis the XML element of this fragment.

BaseConstructL(const TDesC8 &)

IMPORT_C voidBaseConstructL(const TDesC8 &aLocalName)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 4.0

Parameters

const TDesC8 & aLocalNameThe local name of the element

BaseConstructL(const TDesC8 &, const TDesC8 &)

IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName
)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 4.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the element
const TDesC8 & aLocalNameThe local name of the element

BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aPrefix
)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 4.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the element
const TDesC8 & aLocalNameThe local name of the element
const TDesC8 & aPrefixThe prefix of the element

BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)

IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aPrefix,
const RAttributeArray &aAttrs
)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 4.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the element
const TDesC8 & aLocalNameThe local name of the element
const TDesC8 & aPrefixThe prefix of the element
const RAttributeArray & aAttrsThe attributes of the element

BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &)

IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aPrefix,
const RAttributeArray &aAttrs,
TXmlEngElement &aParent
)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 4.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the element
const TDesC8 & aLocalNameThe local name of the element
const TDesC8 & aPrefixThe prefix of the element
const RAttributeArray & aAttrsThe attributes of the element
TXmlEngElement & aParentThe parent of the element

BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &, RSenDocument &)

IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aPrefix,
const RAttributeArray &aAttrs,
TXmlEngElement &aParent,
RSenDocument &aOwnerDocument
)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 4.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the element
const TDesC8 & aLocalNameThe local name of the element
const TDesC8 & aPrefixThe prefix of the element
const RAttributeArray & aAttrsThe attributes of the element
TXmlEngElement & aParentThe parent of the element
RSenDocument & aOwnerDocumentThe document which will be the owner of the elements of this fragment

ConsistsOfL(CSenFragmentBase &)

IMPORT_C TBoolConsistsOfL(CSenFragmentBase &aCandidate)[virtual]
Checks if fragment matches to another fragment by its content and child elements. Fragment can contain more data than the given candidate.
Since
Series60 4.0

Parameters

CSenFragmentBase & aCandidateThe pattern to be matched. Must contain same or less data for match to come true.

ConsistsOfL(TXmlEngElement &, TXmlEngElement &)

IMPORT_C TBoolConsistsOfL(TXmlEngElement &aElement,
TXmlEngElement &aCandidate
)[protected, virtual]

Parameters

TXmlEngElement & aElement
TXmlEngElement & aCandidate

ContentL()

IMPORT_C TPtrC8ContentL()[virtual]
Getter for the content,which is returned as UTF-8 form XML.
Since
Series60 4.0

ContentOf(const TDesC8 &)

IMPORT_C TPtrC8ContentOf(const TDesC8 &aLocalName)[protected]
Gets the content of a given element.
Since
Series60 4.0

Parameters

const TDesC8 & aLocalNameThe local name of the element which content is asked

ExpandL(const RTagInfo &, const RAttributeArray &, TInt)

IMPORT_C voidExpandL(const RTagInfo &aElement,
const RAttributeArray &aAttributes,
TIntaErrorCode
)[virtual]
Initiates the parsing chain where new delegate will be created with given parameters and parsing will be delegated to it. Should not be called externally.
Since
Series60 4.0

Parameters

const RTagInfo & aElementThe RTagInfo class holding information that describes the element.
const RAttributeArray & aAttributesThe attributes of the new element
TInt aErrorCodeError code

ExtractElement()

IMPORT_C TXmlEngElementExtractElement()[virtual]
Etracts the XML element from the fragment, leaving the fragment empty. Note(!): the return value (CSenElement) STRONGLY suggests that subclasses INHERIT CSenFragment in order properly comply the requirement of the ExtractElement() implementation.
Since
Series60 4.0

GetExtendedInterface(const TInt32)

IMPORT_C TAny *GetExtendedInterface(const TInt32aUid)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

const TInt32 aUid

LocalName()

IMPORT_C TPtrC8LocalName()const [virtual]
Since
Series60 4.0

Namespace(const TDesC8 &)

IMPORT_C TXmlEngNamespaceNamespace(const TDesC8 &aPrefix)[virtual]
Gets the namespace object with a given prefix.
Since
Series60 4.0

Parameters

const TDesC8 & aPrefix

NewL()

IMPORT_C CSenDomFragmentBase *NewL()[static]
Basic contructor. Should be used only for parsing new fragments etc. Constructing DomFragments for other use should be done with at least localname parameter.
Since
Series60 4.0

NewL(const TXmlEngElement &)

IMPORT_C CSenDomFragmentBase *NewL(const TXmlEngElement &aElement)[static]
Basic constructor.
Since
Series60 4.0

Parameters

const TXmlEngElement & aElementElement to copy construction data from.

NewL(const TDesC8 &)

IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &aLocalName)[static]
Basic constructor.
Since
Series60 4.0

Parameters

const TDesC8 & aLocalNameis the XML localname of this fragment

NewL(const TDesC8 &, const TDesC8 &)

IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName
)[static]
Basic constructor.
Since
Series60 4.0

Parameters

const TDesC8 & aNsUriis the XML namespace user of this fragment
const TDesC8 & aLocalNameis the XML localname of this fragment

NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aPrefix
)[static]
Basic constructor.
Since
Series60 4.0

Parameters

const TDesC8 & aNsUriis the XML namespace user of this fragment
const TDesC8 & aLocalNameis the XML localname of this fragment
const TDesC8 & aPrefixis the XML prefix of this fragment

NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)

IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aPrefix,
const RAttributeArray &aAttrs
)[static]
Basic constructor.
Since
Series60 4.0

Parameters

const TDesC8 & aNsUriis the XML namespace of this fragment
const TDesC8 & aLocalNameis the XML localname of this fragment
const TDesC8 & aPrefixis the prefix of this fragment
const RAttributeArray & aAttrsare the XML attributes of this fragment

NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &)

IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aPrefix,
const RAttributeArray &aAttrs,
TXmlEngElement &aParent
)[static]
Basic constructor.
Since
Series60 4.0

Parameters

const TDesC8 & aNsUriis the XML namespace of this fragment
const TDesC8 & aLocalNameis the XML localname of this fragment
const TDesC8 & aPrefixis the prefix of this fragment
const RAttributeArray & aAttrsare the XML attributes of this fragment
TXmlEngElement & aParentis the parent XML element of this fragment

NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &, RSenDocument &)

IMPORT_C CSenDomFragmentBase *NewL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aPrefix,
const RAttributeArray &aAttrs,
TXmlEngElement &aParent,
RSenDocument &aOwnerDocument
)[static]
Basic constructor.
Since
Series60 4.0

Parameters

const TDesC8 & aNsUriis the XML namespace of this fragment
const TDesC8 & aLocalNameis the XML localname of this fragment
const TDesC8 & aPrefixis the prefix of this fragment
const RAttributeArray & aAttrsare the XML attributes of this fragment
TXmlEngElement & aParentis the parent XML element of this fragment
RSenDocument & aOwnerDocumentis the document which will be the owner of the elements of this fragment

NsPrefix()

IMPORT_C TPtrC8NsPrefix()const [virtual]
Getter for namespace prefix of this fragment.
Since
Series60 4.0

NsUri()

IMPORT_C TPtrC8NsUri()const [virtual]
Getter for Fragment's namespace URI..
Since
Series60 4.0

OnContentL(const TDesC8 &, TInt)

IMPORT_C voidOnContentL(const TDesC8 &aBytes,
TIntaErrorCode
)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

const TDesC8 & aBytes
TInt aErrorCode

OnDelegateParsingL(CSenFragmentBase &)

IMPORT_C voidOnDelegateParsingL(CSenFragmentBase &aDelegate)[virtual]
Let the delegate MSenFragment handle the following SAX events. This fragment is made the owner of the delegate and the delegate is expected to make this MSenFragment the receiver of SAX events once it has seen the end element for itself.
Since
Series60 4.0

Parameters

CSenFragmentBase & aDelegateis the fragment to start handling the SAX events.

OnDelegateParsingL(const RTagInfo &, const RAttributeArray &, TInt)

IMPORT_C voidOnDelegateParsingL(const RTagInfo &aElement,
const RAttributeArray &aAttributes,
TIntaErrorCode
)[virtual]

Parameters

const RTagInfo & aElement
const RAttributeArray & aAttributes
TInt aErrorCode

OnEndDocumentL(TInt)

IMPORT_C voidOnEndDocumentL(TIntaErrorCode)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

TInt aErrorCode

OnEndElementL(const RTagInfo &, TInt)

IMPORT_C voidOnEndElementL(const RTagInfo &aElement,
TIntaErrorCode
)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

const RTagInfo & aElement
TInt aErrorCode

OnEndPrefixMappingL(const RString &, TInt)

IMPORT_C voidOnEndPrefixMappingL(const RString &aPrefix,
TIntaErrorCode
)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

const RString & aPrefix
TInt aErrorCode

OnError(TInt)

IMPORT_C voidOnError(TIntaErrorCode)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

TInt aErrorCode

OnIgnorableWhiteSpaceL(const TDesC8 &, TInt)

IMPORT_C voidOnIgnorableWhiteSpaceL(const TDesC8 &aBytes,
TIntErrorCode
)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

const TDesC8 & aBytes
TInt ErrorCode

OnProcessingInstructionL(const TDesC8 &, const TDesC8 &, TInt)

IMPORT_C voidOnProcessingInstructionL(const TDesC8 &aTarget,
const TDesC8 &aData,
TIntaErrorCode
)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

const TDesC8 & aTarget
const TDesC8 & aData
TInt aErrorCode

OnResumeParsingFromL(const RTagInfo &, TInt)

IMPORT_C voidOnResumeParsingFromL(const RTagInfo &aElement,
TIntaErrorCode
)[virtual]
Resumes the parsing. Usually called by the delegate fragment which was parsing itself after DelegateParsingL().
Since
Series60 4.0

Parameters

const RTagInfo & aElementThe RTagInfo class holding information that describes the element.
TInt aErrorCodeError code

OnSkippedEntityL(const RString &, TInt)

IMPORT_C voidOnSkippedEntityL(const RString &aName,
TIntaErrorCode
)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

const RString & aName
TInt aErrorCode

OnStartDocumentL(const RDocumentParameters &, TInt)

IMPORT_C voidOnStartDocumentL(const RDocumentParameters &aDocParam,
TIntaErrorCode
)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

const RDocumentParameters & aDocParam
TInt aErrorCode

OnStartElementL(const RTagInfo &, const RAttributeArray &, TInt)

IMPORT_C voidOnStartElementL(const RTagInfo &aElement,
const RAttributeArray &aAttributes,
TIntaErrorCode
)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

const RTagInfo & aElement
const RAttributeArray & aAttributes
TInt aErrorCode

OnStartPrefixMappingL(const RString &, const RString &, TInt)

IMPORT_C voidOnStartPrefixMappingL(const RString &aPrefix,
const RString &aUri,
TIntaErrorCode
)[virtual]
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Since
Series60 4.0
MContentHandler

Parameters

const RString & aPrefix
const RString & aUri
TInt aErrorCode

OnWriteEndElementL(const RTagInfo &)

IMPORT_C voidOnWriteEndElementL(const RTagInfo &aElement)
Overriding content writing from CSenBaseFragment to do nothing in DOM fragment (because the tree is expanded).
Since
Series60 4.0

Parameters

const RTagInfo & aElementThe RTagInfo class holding information that describes the element.

OnWriteStartElementL(const RTagInfo &, const RAttributeArray &)

IMPORT_C voidOnWriteStartElementL(const RTagInfo &aElement,
const RAttributeArray &aAttributes
)
Overriding content writing from CSenBaseFragment to do nothing in DOM fragment (because the tree is expanded).
Since
Series60 4.0

Parameters

const RTagInfo & aElementThe RTagInfo class holding information that describes the element.
const RAttributeArray & aAttributesThe attributes of the new element

RenameL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

voidRenameL(const TDesC8 &aLocalName,
const TDesC8 &aPrefix,
const TDesC8 &aNamespace
)[protected]

Method renames the XML properties of this fragment.

Parameters

const TDesC8 & aLocalNameXML localname for this fragment
const TDesC8 & aPrefixXML namespace prefix for this fragment
const TDesC8 & aNamespaceXML namespace URI for this fragment Method leaves with if there is not enough memory (OOM)

RenameL(const TDesC8 &, const TDesC8 &)

voidRenameL(const TDesC8 &aLocalName,
const TDesC8 &aNamespace
)[protected]

Method renames the XML properties of this fragment.

Parameters

const TDesC8 & aLocalNameXML localname for this fragment
const TDesC8 & aNamespaceXML namespace URI for this fragment Method leaves with if there is not enough memory (OOM)

RenameLocalNameL(const TDesC8 &)

voidRenameLocalNameL(const TDesC8 &aLocalName)[protected]

Renames local name for this XML fragment.

Parameters

const TDesC8 & aLocalNameXML localname for this fragment Method leaves with if there is not enough memory (OOM)

RenameNamespaceL(const TDesC8 &)

voidRenameNamespaceL(const TDesC8 &aNamespace)[protected]

Renames namespace URI for this XML fragment.

Parameters

const TDesC8 & aNamespaceXML namespace URI for this fragment Method leaves with if there is not enough memory(OOM)

RenameNamespaceL(const TDesC8 &, const TDesC8 &)

voidRenameNamespaceL(const TDesC8 &aPrefix,
const TDesC8 &aNamespace
)[protected]

Renames namespace prefix and namespace URI for this XML fragment.

Parameters

const TDesC8 & aPrefixXML namespace prefix for this fragment
const TDesC8 & aNamespaceXML namespace URI for this fragment Method leaves with if there is not enough memory (OOM)

RenamePrefixL(const TDesC8 &)

voidRenamePrefixL(const TDesC8 &aPrefix)[protected]

Renames namespace prefix for this XML fragment.

Parameters

const TDesC8 & aPrefixXML namespace prefix for this fragment Method leaves with if there is not enough memory (OOM)

ResetContentL()

IMPORT_C voidResetContentL()[virtual]
Since
Series60 4.0
Since
Series60 4.0

SetContentHandler(CSenFragmentBase &)

IMPORT_C voidSetContentHandler(CSenFragmentBase &aContentHandler)

Parameters

CSenFragmentBase & aContentHandler

SetContentOfL(const TDesC8 &, const TDesC8 &)

IMPORT_C TXmlEngElementSetContentOfL(const TDesC8 &aLocalName,
const TDesC8 &aContent
)[protected]
Sets content to a child element. If no element with given local name is not found, new one is added and content is set to that one.
Since
Series60 4.0

Parameters

const TDesC8 & aLocalNameThe local name of element which content is about to be set
const TDesC8 & aContentContent to be set.

SetOwner(CSenFragmentBase &)

IMPORT_C voidSetOwner(CSenFragmentBase &aFragment)[virtual]
Sets a new parent for this fragment.
Since
Series60 4.0

Parameters

CSenFragmentBase & aFragment

WriteAsXMLToL(RWriteStream &)

IMPORT_C voidWriteAsXMLToL(RWriteStream &aWs)[virtual]
Invokes AsElement().WriteAsXMLToL(aWs);
Since
Series60 4.0

Parameters

RWriteStream & aWsis the stream into which the UTF-8 form XML will be written.

Member Data Documentation

CSenDomFragmentBase * ipDomDelegate

CSenDomFragmentBase *ipDomDelegate[protected]

Callback functions which implement the XML content handler interface. Inheriting classes can override these.