Roap::CRoapParser Class Reference

class Roap::CRoapParser : public CBase

ROAP parser base class

roaphandler.dll
Since
S60 v3.0

Inherits from

Public Member Functions
~CRoapParser()
TRoapStatus ConvertRoapStatus(const TDesC8 &)
TInt ExtractDomainKeyElements(const TDesC8 &, RPointerArray< HBufC8 > &)
TPtrC8 ExtractElement(const TDesC8 &, const TDesC8 &, TInt &)
HBufC8 *GetAttributeValueL(const RAttributeArray &, const TDesC8 &)
TAny *GetExtendedInterface(const TInt32)
CRoapParser *NewL()
voidOnContentL(const TDesC8 &, TInt)
voidOnEndDocumentL(TInt)
voidOnEndElementL(const RTagInfo &, TInt)
voidOnEndPrefixMappingL(const RString &, TInt)
voidOnError(TInt)
voidOnIgnorableWhiteSpaceL(const TDesC8 &, TInt)
voidOnOutOfData()
voidOnProcessingInstructionL(const TDesC8 &, const TDesC8 &, TInt)
voidOnSkippedEntityL(const RString &, TInt)
voidOnStartDocumentL(const RDocumentParameters &, TInt)
voidOnStartElementL(const RTagInfo &, const RAttributeArray &, TInt)
voidOnStartPrefixMappingL(const RString &, const RString &, TInt)
CJoinDomainResp *ParseJoinDomainRespL(const TDesC8 &, RPointerArray< HBufC8 > &)
CLeaveDomainResp *ParseLeaveDomainRespL(const TDesC8 &)
CMeteringResp *ParseMeteringRespL(const TDesC8 &)
CRIHello *ParseRIHelloL(const TDesC8 &)
CRegistrationResp *ParseRegistrationRespL(const TDesC8 &)
CRightsResp *ParseRightsRespL(const TDesC8 &)
CRoapTrigger *ParseRoapTriggerL(const TDesC8 &)
Protected Member Functions
CRoapParser()
voidConstructL()
TParserStackState MatchStackState(void)
voidParseL(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()
Public Attributes
const TIntKMaxElementCount
const TIntKMaxElementNesting
HBufC8 *iContent
TInt iElementStack
TInt iElementStackDepth
CParser *iParser
MRespParser *iResponseParser
RString iRoapElements

Constructor & Destructor Documentation

CRoapParser()

CRoapParser()[protected]

From ?base_class ?member_description C++ default constructor.

~CRoapParser()

~CRoapParser()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[protected]

Symbian 2nd phase constructor.

ConvertRoapStatus(const TDesC8 &)

TRoapStatus ConvertRoapStatus(const TDesC8 &aStatus)
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aStatus

ExtractDomainKeyElements(const TDesC8 &, RPointerArray< HBufC8 > &)

TInt ExtractDomainKeyElements(const TDesC8 &aMessage,
RPointerArray< HBufC8 > &aDomainKeyElements
)const
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aMessage
RPointerArray< HBufC8 > & aDomainKeyElements

ExtractElement(const TDesC8 &, const TDesC8 &, TInt &)

TPtrC8 ExtractElement(const TDesC8 &aMessage,
const TDesC8 &aElement,
TInt &aOffset
)const
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aMessage
const TDesC8 & aElement
TInt & aOffset

GetAttributeValueL(const RAttributeArray &, const TDesC8 &)

HBufC8 *GetAttributeValueL(const RAttributeArray &aAttrList,
const TDesC8 &aAttrName
)
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const RAttributeArray & aAttrList
const TDesC8 & aAttrName

GetExtendedInterface(const TInt32)

TAny *GetExtendedInterface(const TInt32aUid)

From ?base_class ?member_description.

Parameters

const TInt32 aUidthe uid identifying the required interface.

MatchStackState(void)

TParserStackState MatchStackState(void)[protected]
?member_description.
Since
Series ?XX ?SeriesXX_version
Since
Series ?XX ?SeriesXX_version

Parameters

void

NewL()

CRoapParser *NewL()[static]

Two-phased constructor.

OnContentL(const TDesC8 &, TInt)

voidOnContentL(const TDesC8 &aBytes,
TIntaErrorCode
)

From ?base_class ?member_description.

Parameters

const TDesC8 & aBytesis the raw content data for the element. The client is responsible for converting the data to the required character set if necessary. In some instances the content may be binary and must not be converted.
TInt aErrorCodeis the error code. If this is not KErrNone then special action may be required.

OnEndDocumentL(TInt)

voidOnEndDocumentL(TIntaErrorCode)

From ?base_class ?member_description.

Parameters

TInt aErrorCodeis the error code. If this is not KErrNone then special action may be required.

OnEndElementL(const RTagInfo &, TInt)

voidOnEndElementL(const RTagInfo &aElement,
TIntaErrorCode
)

From ?base_class ?member_description.

Parameters

const RTagInfo & aElementis a handle to the element's details.
TInt aErrorCodeis the error code. If this is not KErrNone then special action may be required.

OnEndPrefixMappingL(const RString &, TInt)

voidOnEndPrefixMappingL(const RString &aPrefix,
TIntaErrorCode
)

From ?base_class ?member_description.

Parameters

const RString & aPrefixis the Namespace prefix that was mapped.
TInt aErrorCodeis the error code. If this is not KErrNone then special action may be required.

OnError(TInt)

voidOnError(TIntaErrorCode)

From ?base_class ?member_description.

Parameters

TInt aErrorCode

OnIgnorableWhiteSpaceL(const TDesC8 &, TInt)

voidOnIgnorableWhiteSpaceL(const TDesC8 &aBytes,
TIntaErrorCode
)

From ?base_class ?member_description.

Parameters

const TDesC8 & aBytesare the ignored bytes from the document being parsed.
TInt aErrorCodeis the error code. If this is not KErrNone then special action may be required.

OnOutOfData()

voidOnOutOfData()

From ?base_class ?member_description.

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

voidOnProcessingInstructionL(const TDesC8 &aTarget,
const TDesC8 &aData,
TIntaErrorCode
)

From ?base_class ?member_description.

Parameters

const TDesC8 & aTargetis the processing instruction target.
const TDesC8 & aDatais the processing instruction data. If empty none was supplied.
TInt aErrorCodeis the error code. If this is not KErrNone then special action may be required.

OnSkippedEntityL(const RString &, TInt)

voidOnSkippedEntityL(const RString &aName,
TIntaErrorCode
)

From ?base_class ?member_description.

Parameters

const RString & aNameis the name of the skipped entity.
TInt aErrorCodeis the error code. If this is not KErrNone then special action may be required.

OnStartDocumentL(const RDocumentParameters &, TInt)

voidOnStartDocumentL(const RDocumentParameters &aDocParam,
TIntaErrorCode
)

From ?base_class ?member_description.

Parameters

const RDocumentParameters & aDocParamSpecifies the various parameters of the document. aDocParam.iCharacterSetName The character encoding of the document.
TInt aErrorCodeis the error code. If this is not KErrNone then special action may be required.

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

voidOnStartElementL(const RTagInfo &aElement,
const RAttributeArray &aAttributes,
TIntaErrorCode
)

From ?base_class ?member_description.

Parameters

const RTagInfo & aElementis a handle to the element's details.
const RAttributeArray & aAttributescontains the attributes for the element.
TInt aErrorCodeis the error code. If this is not KErrNone then special action may be required.

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

voidOnStartPrefixMappingL(const RString &aPrefix,
const RString &aUri,
TIntaErrorCode
)

From ?base_class ?member_description.

Parameters

const RString & aPrefixis the Namespace prefix being declared.
const RString & aUriis the Namespace URI the prefix is mapped to.
TInt aErrorCodeis the error code. If this is not KErrNone then special action may be required.

ParseJoinDomainRespL(const TDesC8 &, RPointerArray< HBufC8 > &)

CJoinDomainResp *ParseJoinDomainRespL(const TDesC8 &aMessage,
RPointerArray< HBufC8 > &aDomainKeyElements
)
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aMessage
RPointerArray< HBufC8 > & aDomainKeyElements

ParseL(const TDesC8 &)

voidParseL(const TDesC8 &aMessage)[protected]
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aMessage

ParseLeaveDomainRespL(const TDesC8 &)

CLeaveDomainResp *ParseLeaveDomainRespL(const TDesC8 &aMessage)
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aMessage

ParseMeteringRespL(const TDesC8 &)

CMeteringResp *ParseMeteringRespL(const TDesC8 &aMessage)
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aMessage

ParseRIHelloL(const TDesC8 &)

CRIHello *ParseRIHelloL(const TDesC8 &aMessage)
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aMessage

ParseRegistrationRespL(const TDesC8 &)

CRegistrationResp *ParseRegistrationRespL(const TDesC8 &aMessage)
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aMessage

ParseRightsRespL(const TDesC8 &)

CRightsResp *ParseRightsRespL(const TDesC8 &aMessage)
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aMessage

ParseRoapTriggerL(const TDesC8 &)

CRoapTrigger *ParseRoapTriggerL(const TDesC8 &aMessage)
?member_description.
Since
Series ?XX ?SeriesXX_version

Parameters

const TDesC8 & aMessage

Member Data Documentation

const TInt KMaxElementCount

const TIntKMaxElementCount[static]

const TInt KMaxElementNesting

const TIntKMaxElementNesting[static]

HBufC8 * iContent

HBufC8 *iContent

TInt iElementStack

TInt iElementStack

TInt iElementStackDepth

TInt iElementStackDepth

CParser * iParser

CParser *iParser

MRespParser * iResponseParser

MRespParser *iResponseParser

RString iRoapElements

RString iRoapElements