#include <mw/SenDomFragmentBase.h>
class CSenDomFragmentBase : public CSenFragmentBase |
Protected Attributes | |
---|---|
CSenDomFragmentBase * | ipDomDelegate |
Public Member Functions | |
---|---|
virtual | ~CSenDomFragmentBase() |
virtual IMPORT_C void | AddAttributesL(const RAttributeArray &) |
virtual IMPORT_C RSenDocument & | AsDocumentL() |
virtual IMPORT_C TXmlEngElement | AsElementL() |
virtual IMPORT_C HBufC8 * | AsXmlL() |
virtual IMPORT_C HBufC * | AsXmlUnicodeL() |
virtual IMPORT_C TBool | ConsistsOfL(CSenFragmentBase &) |
virtual IMPORT_C TPtrC8 | ContentL() |
virtual IMPORT_C void | ExpandL(const RTagInfo &, const RAttributeArray &, TInt) |
virtual IMPORT_C TXmlEngElement | ExtractElement() |
virtual IMPORT_C TAny * | GetExtendedInterface(const TInt32) |
virtual IMPORT_C TPtrC8 | LocalName() |
virtual IMPORT_C TXmlEngNamespace | Namespace(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 &) |
virtual IMPORT_C TPtrC8 | NsPrefix() |
virtual IMPORT_C TPtrC8 | NsUri() |
virtual IMPORT_C void | OnContentL(const TDesC8 &, TInt) |
virtual IMPORT_C void | OnDelegateParsingL(CSenFragmentBase &) |
virtual IMPORT_C void | OnDelegateParsingL(const RTagInfo &, const RAttributeArray &, TInt) |
virtual IMPORT_C void | OnEndDocumentL(TInt) |
virtual IMPORT_C void | OnEndElementL(const RTagInfo &, TInt) |
virtual IMPORT_C void | OnEndPrefixMappingL(const RString &, TInt) |
virtual IMPORT_C void | OnError(TInt) |
virtual IMPORT_C void | OnIgnorableWhiteSpaceL(const TDesC8 &, TInt) |
virtual IMPORT_C void | OnProcessingInstructionL(const TDesC8 &, const TDesC8 &, TInt) |
virtual IMPORT_C void | OnResumeParsingFromL(const RTagInfo &, TInt) |
virtual IMPORT_C void | OnSkippedEntityL(const RString &, TInt) |
virtual IMPORT_C void | OnStartDocumentL(const RDocumentParameters &, TInt) |
virtual IMPORT_C void | OnStartElementL(const RTagInfo &, const RAttributeArray &, TInt) |
virtual IMPORT_C void | OnStartPrefixMappingL(const RString &, const RString &, TInt) |
IMPORT_C void | OnWriteEndElementL(const RTagInfo &) |
IMPORT_C void | OnWriteStartElementL(const RTagInfo &, const RAttributeArray &) |
virtual IMPORT_C void | ResetContentL() |
IMPORT_C void | SetContentHandler(CSenFragmentBase &) |
virtual IMPORT_C void | SetOwner(CSenFragmentBase &) |
virtual IMPORT_C void | WriteAsXMLToL(RWriteStream &) |
Protected Member Functions | |
---|---|
CSenDomFragmentBase() | |
virtual IMPORT_C void | AddNamespacesL() |
IMPORT_C void | BaseConstructL() |
IMPORT_C void | BaseConstructL(const TXmlEngElement &) |
IMPORT_C void | BaseConstructL(const TDesC8 &) |
IMPORT_C void | BaseConstructL(const TDesC8 &, const TDesC8 &) |
IMPORT_C void | BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &) |
IMPORT_C void | BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &) |
IMPORT_C void | BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &) |
IMPORT_C void | BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &, RSenDocument &) |
virtual IMPORT_C TBool | ConsistsOfL(TXmlEngElement &, TXmlEngElement &) |
IMPORT_C TPtrC8 | ContentOf(const TDesC8 &) |
void | RenameL(const TDesC8 &, const TDesC8 &, const TDesC8 &) |
void | RenameL(const TDesC8 &, const TDesC8 &) |
void | RenameLocalNameL(const TDesC8 &) |
void | RenameNamespaceL(const TDesC8 &) |
void | RenameNamespaceL(const TDesC8 &, const TDesC8 &) |
void | RenamePrefixL(const TDesC8 &) |
IMPORT_C TXmlEngElement | SetContentOfL(const TDesC8 &, const TDesC8 &) |
CSenDomFragmentBase * | ipDomDelegate | [protected] |
Callback functions which implement the XML content handler interface. Inheriting classes can override these.
IMPORT_C void | AddAttributesL | ( | const RAttributeArray & | aAttrs | ) | [virtual] |
IMPORT_C void | AddNamespacesL | ( | ) | [protected, virtual] |
Reimplemented from CSenFragmentBase::AddNamespacesL()
IMPORT_C RSenDocument & | AsDocumentL | ( | ) | [virtual] |
Reimplemented from CSenFragmentBase::AsDocumentL()
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)
Returns: reference to the element of this fragment
IMPORT_C TXmlEngElement | AsElementL | ( | ) | [virtual] |
Reimplemented from CSenFragmentBase::AsElementL()
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)
Returns: reference to the element of this fragment
IMPORT_C HBufC8 * | AsXmlL | ( | ) | [virtual] |
Reimplemented from CSenFragmentBase::AsXmlL()
Returns: fragment as XML. Caller takes ownership.
IMPORT_C HBufC * | AsXmlUnicodeL | ( | ) | [virtual] |
Reimplemented from CSenFragmentBase::AsXmlUnicodeL()
Returns: fragment as XML. Caller takes ownership.
IMPORT_C void | BaseConstructL | ( | ) | [protected] |
IMPORT_C void | BaseConstructL | ( | const TXmlEngElement & | aElement | ) | [protected] |
Reimplemented from CSenFragmentBase::BaseConstructL(const TXmlEngElement &)
Parameter | Description |
---|---|
aElement | is the XML element of this fragment. |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aLocalName | ) | [protected] |
Reimplemented from CSenFragmentBase::BaseConstructL(const TDesC8 &)
Parameter | Description |
---|---|
aLocalName | The local name of the element |
Reimplemented from CSenFragmentBase::BaseConstructL(const TDesC8 &,const TDesC8 &)
Parameter | Description |
---|---|
aNsUri | The namespace URI of the element |
aLocalName | The local name of the element |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix | |||
) | [protected] |
Parameter | Description |
---|---|
aNsUri | The namespace URI of the element |
aLocalName | The local name of the element |
aPrefix | The prefix of the element |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | aAttrs | |||
) | [protected] |
Parameter | Description |
---|---|
aNsUri | The namespace URI of the element |
aLocalName | The local name of the element |
aPrefix | The prefix of the element |
aAttrs | The attributes of the element |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | aAttrs, | |||
TXmlEngElement & | aParent | |||
) | [protected] |
Parameter | Description |
---|---|
aNsUri | The namespace URI of the element |
aLocalName | The local name of the element |
aPrefix | The prefix of the element |
aAttrs | The attributes of the element |
aParent | The parent of the element |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | aAttrs, | |||
TXmlEngElement & | aParent, | |||
RSenDocument & | aOwnerDocument | |||
) | [protected] |
Parameter | Description |
---|---|
aNsUri | The namespace URI of the element |
aLocalName | The local name of the element |
aPrefix | The prefix of the element |
aAttrs | The attributes of the element |
aParent | The parent of the element |
aOwnerDocument | The document which will be the owner of the elements of this fragment |
IMPORT_C TBool | ConsistsOfL | ( | CSenFragmentBase & | aCandidate | ) | [virtual] |
Reimplemented from CSenFragmentBase::ConsistsOfL(CSenFragmentBase &)
Parameter | Description |
---|---|
aCandidate | The pattern to be matched. Must contain same or less data for match to come true. |
Returns: ETrue if content and possible children match exactly to given pattern. EFalse otherwise.
IMPORT_C TBool | ConsistsOfL | ( | TXmlEngElement & | aElement, |
TXmlEngElement & | aCandidate | |||
) | [protected, virtual] |
Reimplemented from CSenFragmentBase::ConsistsOfL(TXmlEngElement &,TXmlEngElement &)
IMPORT_C TPtrC8 | ContentL | ( | ) | [virtual] |
Reimplemented from CSenFragmentBase::ContentL()
Returns: content as UTF-8 form XML.
Reimplemented from CSenFragmentBase::ContentOf(const TDesC8 &)
Parameter | Description |
---|---|
aLocalName | The local name of the element which content is asked |
Returns: the content which was asked
IMPORT_C void | ExpandL | ( | const RTagInfo & | aElement, |
const RAttributeArray & | aAttributes, | |||
TInt | aErrorCode | |||
) | [virtual] |
Parameter | Description |
---|---|
aElement | The RTagInfo class holding information that describes the element. |
aAttributes | The attributes of the new element |
aErrorCode | Error code |
IMPORT_C TXmlEngElement | ExtractElement | ( | ) | [virtual] |
Reimplemented from CSenFragmentBase::ExtractElement()
Returns: the current object as element. May return NULL. Ownership IS TRANSFERRED to the caller.
Reimplemented from CSenFragmentBase::GetExtendedInterface(const TInt32)
See also: MContentHandler
IMPORT_C TPtrC8 | LocalName | ( | ) | const [virtual] |
Reimplemented from CSenFragmentBase::LocalName()const
Returns: the localname of this fragment as UTF-8 form descriptor
IMPORT_C TXmlEngNamespace | Namespace | ( | const TDesC8 & | aPrefix | ) | [virtual] |
Reimplemented from CSenFragmentBase::Namespace(const TDesC8 &)
Returns: namespace with the given prefix. If not found or given prefix is zero length, will return NULL.
IMPORT_C CSenDomFragmentBase * | NewL | ( | ) | [static] |
IMPORT_C CSenDomFragmentBase * | NewL | ( | const TXmlEngElement & | aElement | ) | [static] |
Reimplemented from CSenFragmentBase::NewL(const TXmlEngElement &)
Parameter | Description |
---|---|
aElement | Element to copy construction data from. |
IMPORT_C CSenDomFragmentBase * | NewL | ( | const TDesC8 & | aLocalName | ) | [static] |
Reimplemented from CSenFragmentBase::NewL(const TDesC8 &)
Parameter | Description |
---|---|
aLocalName | is the XML localname of this fragment |
IMPORT_C CSenDomFragmentBase * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName | |||
) | [static] |
Reimplemented from CSenFragmentBase::NewL(const TDesC8 &,const TDesC8 &)
Parameter | Description |
---|---|
aNsUri | is the XML namespace user of this fragment |
aLocalName | is the XML localname of this fragment |
IMPORT_C CSenDomFragmentBase * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix | |||
) | [static] |
Reimplemented from CSenFragmentBase::NewL(const TDesC8 &,const TDesC8 &,const TDesC8 &)
Parameter | Description |
---|---|
aNsUri | is the XML namespace user of this fragment |
aLocalName | is the XML localname of this fragment |
aPrefix | is the XML prefix of this fragment |
IMPORT_C CSenDomFragmentBase * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | aAttrs | |||
) | [static] |
Parameter | Description |
---|---|
aNsUri | is the XML namespace of this fragment |
aLocalName | is the XML localname of this fragment |
aPrefix | is the prefix of this fragment |
aAttrs | are the XML attributes of this fragment |
IMPORT_C CSenDomFragmentBase * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | aAttrs, | |||
TXmlEngElement & | aParent | |||
) | [static] |
Parameter | Description |
---|---|
aNsUri | is the XML namespace of this fragment |
aLocalName | is the XML localname of this fragment |
aPrefix | is the prefix of this fragment |
aAttrs | are the XML attributes of this fragment |
aParent | is the parent XML element of this fragment |
IMPORT_C CSenDomFragmentBase * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | aAttrs, | |||
TXmlEngElement & | aParent, | |||
RSenDocument & | aOwnerDocument | |||
) | [static] |
Parameter | Description |
---|---|
aNsUri | is the XML namespace of this fragment |
aLocalName | is the XML localname of this fragment |
aPrefix | is the prefix of this fragment |
aAttrs | are the XML attributes of this fragment |
aParent | is the parent XML element of this fragment |
aOwnerDocument | is the document which will be the owner of the elements of this fragment |
IMPORT_C TPtrC8 | NsPrefix | ( | ) | const [virtual] |
Reimplemented from CSenFragmentBase::NsPrefix()const
Returns: namespace prefix or KNullDesC if not set.
IMPORT_C TPtrC8 | NsUri | ( | ) | const [virtual] |
Reimplemented from CSenFragmentBase::NsUri()const
Returns: Namespace URI or KNullDesC if not set.
Reimplemented from CSenFragmentBase::OnContentL(const TDesC8 &,TInt)
See also: MContentHandler
IMPORT_C void | OnDelegateParsingL | ( | CSenFragmentBase & | aDelegate | ) | [virtual] |
Reimplemented from CSenFragmentBase::OnDelegateParsingL(CSenFragmentBase &)
Parameter | Description |
---|---|
aDelegate | is the fragment to start handling the SAX events. |
IMPORT_C void | OnDelegateParsingL | ( | const RTagInfo & | aElement, |
const RAttributeArray & | aAttributes, | |||
TInt | aErrorCode | |||
) | [virtual] |
IMPORT_C void | OnEndDocumentL | ( | TInt | aErrorCode | ) | [virtual] |
Reimplemented from CSenFragmentBase::OnEndDocumentL(TInt)
See also: MContentHandler
IMPORT_C void | OnEndElementL | ( | const RTagInfo & | aElement, |
TInt | aErrorCode | |||
) | [virtual] |
See also: MContentHandler
Reimplemented from CSenFragmentBase::OnEndPrefixMappingL(const RString &,TInt)
See also: MContentHandler
IMPORT_C void | OnError | ( | TInt | aErrorCode | ) | [virtual] |
Reimplemented from CSenFragmentBase::OnError(TInt)
See also: MContentHandler
Reimplemented from CSenFragmentBase::OnIgnorableWhiteSpaceL(const TDesC8 &,TInt)
See also: MContentHandler
IMPORT_C void | OnResumeParsingFromL | ( | const RTagInfo & | aElement, |
TInt | aErrorCode | |||
) | [virtual] |
Parameter | Description |
---|---|
aElement | The RTagInfo class holding information that describes the element. |
aErrorCode | Error code |
Reimplemented from CSenFragmentBase::OnSkippedEntityL(const RString &,TInt)
See also: MContentHandler
IMPORT_C void | OnStartDocumentL | ( | const RDocumentParameters & | aDocParam, |
TInt | aErrorCode | |||
) | [virtual] |
Reimplemented from CSenFragmentBase::OnStartDocumentL(const RDocumentParameters &,TInt)
See also: MContentHandler
IMPORT_C void | OnStartElementL | ( | const RTagInfo & | aElement, |
const RAttributeArray & | aAttributes, | |||
TInt | aErrorCode | |||
) | [virtual] |
See also: MContentHandler
IMPORT_C void | OnWriteEndElementL | ( | const RTagInfo & | aElement | ) |
Parameter | Description |
---|---|
aElement | The RTagInfo class holding information that describes the element. |
IMPORT_C void | OnWriteStartElementL | ( | const RTagInfo & | aElement, |
const RAttributeArray & | aAttributes | |||
) |
Parameter | Description |
---|---|
aElement | The RTagInfo class holding information that describes the element. |
aAttributes | The attributes of the new element |
Reimplemented from CSenFragmentBase::RenameL(const TDesC8 &,const TDesC8 &,const TDesC8 &)
Method renames the XML properties of this fragment.
Parameter | Description |
---|---|
aLocalName | XML localname for this fragment |
aPrefix | XML namespace prefix for this fragment |
aNamespace | XML namespace URI for this fragment Method leaves with if there is not enough memory (OOM) |
Reimplemented from CSenFragmentBase::RenameL(const TDesC8 &,const TDesC8 &)
Method renames the XML properties of this fragment.
Parameter | Description |
---|---|
aLocalName | XML localname for this fragment |
aNamespace | XML namespace URI for this fragment Method leaves with if there is not enough memory (OOM) |
void | RenameLocalNameL | ( | const TDesC8 & | aLocalName | ) | [protected] |
Reimplemented from CSenFragmentBase::RenameLocalNameL(const TDesC8 &)
Renames local name for this XML fragment.
Parameter | Description |
---|---|
aLocalName | XML localname for this fragment Method leaves with if there is not enough memory (OOM) |
void | RenameNamespaceL | ( | const TDesC8 & | aNamespace | ) | [protected] |
Reimplemented from CSenFragmentBase::RenameNamespaceL(const TDesC8 &)
Renames namespace URI for this XML fragment.
Parameter | Description |
---|---|
aNamespace | XML namespace URI for this fragment Method leaves with if there is not enough memory(OOM) |
Reimplemented from CSenFragmentBase::RenameNamespaceL(const TDesC8 &,const TDesC8 &)
Renames namespace prefix and namespace URI for this XML fragment.
Parameter | Description |
---|---|
aPrefix | XML namespace prefix for this fragment |
aNamespace | XML namespace URI for this fragment Method leaves with if there is not enough memory (OOM) |
void | RenamePrefixL | ( | const TDesC8 & | aPrefix | ) | [protected] |
Reimplemented from CSenFragmentBase::RenamePrefixL(const TDesC8 &)
Renames namespace prefix for this XML fragment.
Parameter | Description |
---|---|
aPrefix | XML namespace prefix for this fragment Method leaves with if there is not enough memory (OOM) |
IMPORT_C void | ResetContentL | ( | ) | [virtual] |
Reimplemented from CSenFragmentBase::ResetContentL()
Returns: Detaches this fragment from its owner. All namespace references from possible parent fragments are declared in the scope of this fragment prior detaching. Resets the content of the fragment, and resets the namespaces.
IMPORT_C void | SetContentHandler | ( | CSenFragmentBase & | aContentHandler | ) |
Reimplemented from CSenFragmentBase::SetContentHandler(CSenFragmentBase &)
IMPORT_C TXmlEngElement | SetContentOfL | ( | const TDesC8 & | aLocalName, |
const TDesC8 & | aContent | |||
) | [protected] |
Reimplemented from CSenFragmentBase::SetContentOfL(const TDesC8 &,const TDesC8 &)
Parameter | Description |
---|---|
aLocalName | The local name of element which content is about to be set |
aContent | Content to be set. |
Returns: the element where content was set. Leave codes: KErrSenInvalidCharacters if aLocalName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName is zero length.
IMPORT_C void | SetOwner | ( | CSenFragmentBase & | aFragment | ) | [virtual] |
Reimplemented from CSenFragmentBase::SetOwner(CSenFragmentBase &)
IMPORT_C void | WriteAsXMLToL | ( | RWriteStream & | aWs | ) | [virtual] |
Reimplemented from CSenFragmentBase::WriteAsXMLToL(RWriteStream &)
Parameter | Description |
---|---|
aWs | is the stream into which the UTF-8 form XML will be written. |