#include <mw/SenBaseFragment.h>
class CSenBaseFragment : public CSenFragment |
Protected Attributes | |
---|---|
TInt | iState |
RWriteStream | iWs |
CSenXmlReader * | iXmlReader |
CSenElement * | ipElement |
MSenFragment * | ipOwner |
Public Member Functions | |
---|---|
virtual | ~CSenBaseFragment() |
virtual IMPORT_C CSenElement & | AsElement() |
virtual IMPORT_C HBufC8 * | AsXmlL() |
virtual IMPORT_C HBufC * | AsXmlUnicodeL() |
virtual IMPORT_C TInt | BuildFrom(const TDesC8 &) |
virtual IMPORT_C TBool | ConsistsOfL(MSenFragment &) |
virtual IMPORT_C TPtrC8 | Content() |
virtual IMPORT_C void | DelegateParsingL(MSenFragment &) |
virtual IMPORT_C void | DelegateParsingL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &) |
virtual IMPORT_C void | DetachL() |
virtual IMPORT_C void | EnsureNamespace(const TDesC8 &) |
virtual IMPORT_C CSenElement * | ExtractElement() |
virtual IMPORT_C const TDesC8 & | LocalName() |
virtual IMPORT_C CSenNamespace * | Namespace(const TDesC8 &) |
IMPORT_C CSenBaseFragment * | NewL(const CSenElement &) |
IMPORT_C CSenBaseFragment * | NewL(const TDesC8 &) |
IMPORT_C CSenBaseFragment * | NewL(const TDesC8 &, const TDesC8 &) |
IMPORT_C CSenBaseFragment * | NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &) |
IMPORT_C CSenBaseFragment * | NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &) |
IMPORT_C CSenBaseFragment * | NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, CSenElement &) |
virtual IMPORT_C const TDesC8 & | NsPrefix() |
virtual IMPORT_C const TDesC8 & | NsUri() |
virtual IMPORT_C void | ParseL(const TDesC8 &) |
virtual IMPORT_C void | ParseWithL(CSenXmlReader &) |
virtual IMPORT_C CSenXmlReader * | Reader() |
virtual IMPORT_C void | ResetContentL() |
virtual IMPORT_C void | ResumeParsingFromL(const TDesC8 &, const TDesC8 &, const TDesC8 &) |
virtual IMPORT_C void | SaveNamespacesL(const RAttributeArray &, TBool) |
virtual IMPORT_C void | SetAttributesL(const RAttributeArray &) |
virtual IMPORT_C void | SetOwner(MSenFragment &) |
virtual IMPORT_C void | SetReader(CSenXmlReader &) |
virtual IMPORT_C void | WriteAsXMLToL(RWriteStream &) |
virtual IMPORT_C void | WriteEndElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &) |
virtual IMPORT_C void | WriteStartElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &) |
Protected Member Functions | |
---|---|
CSenBaseFragment() | |
virtual IMPORT_C void | AllocContentSaverL() |
IMPORT_C void | BaseConstructL(const CSenElement &) |
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 &, CSenElement &) |
IMPORT_C void | BaseConstructL(CSenXmlReader &) |
virtual IMPORT_C void | CharactersL(const TDesC8 &, TInt, TInt) |
IMPORT_C TPtrC8 | ContentOf(const TDesC8 &) |
virtual IMPORT_C void | EndElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &) |
IMPORT_C MSenElement & | SetContentOfL(const TDesC8 &, const TDesC8 &) |
virtual IMPORT_C void | StartElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &) |
IMPORT_C TInt | StartEntity(TDesC8 &) |
IMPORT_C void | AllocContentSaverL | ( | ) | [protected, virtual] |
IMPORT_C CSenElement & | AsElement | ( | ) | [virtual] |
Reimplemented from CSenFragment::AsElement()
Returns: the current object as element. Ownership is not transferred.
IMPORT_C HBufC8 * | AsXmlL | ( | ) | [virtual] |
Reimplemented from CSenFragment::AsXmlL()
Returns: fragment as XML. Caller takes ownership.
IMPORT_C HBufC * | AsXmlUnicodeL | ( | ) | [virtual] |
Reimplemented from CSenFragment::AsXmlUnicodeL()
Returns: fragment as XML. Caller takes ownership.
IMPORT_C void | BaseConstructL | ( | const CSenElement & | aElement | ) | [protected] |
Parameter | Description |
---|---|
aElement | from which this fragment will be constructed from. |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aLocalName | ) | [protected] |
Parameter | Description |
---|---|
aLocalName | XML localname for this fragment |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName, | |||
const RAttributeArray & | aAttrs | |||
) | [protected] |
Parameter | Description |
---|---|
aNsUri | XML namespace URI for this fragment |
aLocalName | XML localname for this fragment |
aQName | XML qualifiedname for this fragment |
aAttrs | XML attributes for this fragment |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName, | |||
const RAttributeArray & | aAttrs, | |||
CSenElement & | aParent | |||
) | [protected] |
Parameter | Description |
---|---|
aNsUri | XML namespace URI for this fragment |
aLocalName | XML localname for this fragment |
aQName | XML qualifiedname for this fragment |
aAttrs | XML attributes for this fragment |
aParent | parent to be set for this fragmemt |
IMPORT_C void | BaseConstructL | ( | CSenXmlReader & | aReader | ) | [protected] |
Parameter | Description |
---|---|
aReader | is the XML reader for this fragment |
Reimplemented from CSenFragment::BuildFrom(const TDesC8 &)
Returns: KErrNone or other system-wide Symbian error codes.
Parameter | Description |
---|---|
aChars | The content characters. |
aStart | The starting index |
aLength | The length of the characters. |
IMPORT_C TBool | ConsistsOfL | ( | MSenFragment & | aCandidate | ) | [virtual] |
Reimplemented from CSenFragment::ConsistsOfL(MSenFragment &)
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 TPtrC8 | Content | ( | ) | [virtual] |
Reimplemented from CSenFragment::Content()
Returns: content as UTF-8 form XML.
IMPORT_C void | DelegateParsingL | ( | MSenFragment & | aDelegate | ) | [virtual] |
Reimplemented from CSenFragment::DelegateParsingL(MSenFragment &)
Parameter | Description |
---|---|
aDelegate | is the fragment to start handling the SAX events. |
IMPORT_C void | DelegateParsingL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName, | |||
const RAttributeArray & | aAttrs | |||
) | [virtual] |
Reimplemented from CSenFragment::DelegateParsingL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
Parameter | Description |
---|---|
aNsUri | The XML namespace URI for the delegate to be created |
aLocalName | The XML localname for the delegate to be created |
aQName | The XML qualifiedname for the delegate to be created |
IMPORT_C void | DetachL | ( | ) | [virtual] |
Returns: Detaches this fragment from its owner. All namespace references from possible parent fragments are declared in the scope of this fragment prior detaching.
IMPORT_C void | EndElementL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName | |||
) | [protected, virtual] |
Parameter | Description |
---|---|
aNsUri | The namespace URI of the new element |
aLocalName | The local name of the new element |
aQName | The qualified name of the new element |
IMPORT_C void | EnsureNamespace | ( | const TDesC8 & | aPrefix | ) | [virtual] |
Parameter | Description |
---|---|
aPrefix | is the XML namespace prefix |
IMPORT_C CSenElement * | ExtractElement | ( | ) | [virtual] |
Reimplemented from CSenFragment::ExtractElement()
Returns: the current object as element. May return NULL. Ownership IS TRANSFERRED to the caller.
IMPORT_C const TDesC8 & | LocalName | ( | ) | const [virtual] |
Reimplemented from CSenFragment::LocalName()const
Returns: the localname of this fragment as UTF-8 form descriptor
IMPORT_C CSenNamespace * | Namespace | ( | const TDesC8 & | aPrefix | ) | [virtual] |
Returns: namespace with the given prefix. If not found or given prefix is zero length, will return NULL.
IMPORT_C CSenBaseFragment * | NewL | ( | const CSenElement & | aElement | ) | [static] |
Parameter | Description |
---|---|
aElement | is the element where construction data will be copied from. |
IMPORT_C CSenBaseFragment * | NewL | ( | const TDesC8 & | aLocalName | ) | [static] |
IMPORT_C CSenBaseFragment * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName | |||
) | [static] |
IMPORT_C CSenBaseFragment * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName | |||
) | [static] |
IMPORT_C CSenBaseFragment * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName, | |||
const RAttributeArray & | apAttrs | |||
) | [static] |
IMPORT_C CSenBaseFragment * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName, | |||
const RAttributeArray & | apAttrs, | |||
CSenElement & | aParent | |||
) | [static] |
IMPORT_C const TDesC8 & | NsPrefix | ( | ) | const [virtual] |
Reimplemented from CSenFragment::NsPrefix()const
Returns: namespace prefix or KNullDesC if not set.
IMPORT_C const TDesC8 & | NsUri | ( | ) | const [virtual] |
Reimplemented from CSenFragment::NsUri()const
Returns: Namespace URI or KNullDesC if not set.
IMPORT_C void | ParseL | ( | const TDesC8 & | aXml | ) | [virtual] |
Reimplemented from CSenFragment::ParseL(const TDesC8 &)
IMPORT_C void | ParseWithL | ( | CSenXmlReader & | aReader | ) | [virtual] |
Reimplemented from CSenFragment::ParseWithL(CSenXmlReader &)
Parameter | Description |
---|---|
aReader | is the XML parser to be used. |
IMPORT_C CSenXmlReader * | Reader | ( | ) | [virtual] |
Reimplemented from CSenFragment::Reader()
Returns: the XML reader. Ownerships is not transferred, due even this class does not own the XML reader instance.
IMPORT_C void | ResetContentL | ( | ) | [virtual] |
IMPORT_C void | ResumeParsingFromL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName | |||
) | [virtual] |
Parameter | Description |
---|---|
aNsUri | The namespace URI of the current element |
aLocalName | The local name of the current element |
aQName | The qualified name of the current element |
IMPORT_C void | SaveNamespacesL | ( | const RAttributeArray & | aAttrs, |
TBool | aEnsure | |||
) | [virtual] |
Parameter | Description |
---|---|
aAttrs | are the attributes from which the namespaces are searched from. |
aEnsure | if set to TRUE, the namespaces are copied into this fragment. If FALSE, then the namespaces are only referenced, but not copied and owned by this class. |
IMPORT_C void | SetAttributesL | ( | const RAttributeArray & | aAttrs | ) | [virtual] |
Reimplemented from CSenFragment::SetAttributesL(const RAttributeArray &)
IMPORT_C MSenElement & | SetContentOfL | ( | const TDesC8 & | aLocalName, |
const TDesC8 & | aContent | |||
) | [protected] |
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 | ( | MSenFragment & | aFragment | ) | [virtual] |
Reimplemented from CSenFragment::SetOwner(MSenFragment &)
IMPORT_C void | SetReader | ( | CSenXmlReader & | aReader | ) | [virtual] |
Reimplemented from CSenFragment::SetReader(CSenXmlReader &)
IMPORT_C void | StartElementL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName, | |||
const RAttributeArray & | aAttrs | |||
) | [protected, virtual] |
Parameter | Description |
---|---|
aNsUri | The namespace URI of the new element |
aLocalName | The local name of the new element |
aQName | The qualified name of the new element |
aAttrs | The attributes of the new element |
Callback function which implement the XML content handler interface. Inheriting classes can override these. Note that overrides should return TRUE (1) on success and FALSE (0) on failure to parser.
Parameter | Description |
---|---|
aName | The entity name |
IMPORT_C void | WriteAsXMLToL | ( | RWriteStream & | aWs | ) | [virtual] |
Reimplemented from CSenFragment::WriteAsXMLToL(RWriteStream &)
Parameter | Description |
---|---|
aWs | is the stream into which the UTF-8 form XML will be written. |
IMPORT_C void | WriteEndElementL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName | |||
) | [virtual] |
Reimplemented from CSenFragment::WriteEndElementL(const TDesC8 &,const TDesC8 &,const TDesC8 &)
Parameter | Description |
---|---|
aNsUri | The namespace URI of the current element |
aLocalName | The local name of the current element |
aQName | The qualified name of the current element |
IMPORT_C void | WriteStartElementL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName, | |||
const RAttributeArray & | aAttrs | |||
) | [virtual] |
Reimplemented from CSenFragment::WriteStartElementL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
Parameter | Description |
---|---|
aNsUri | The namespace URI of the current element |
aLocalName | The local name of the current element |
aQName | The qualified name of the current element |
aAttrs | is the array of attributes. |