CUPnPXMLParserLite Class Reference

class CUPnPXMLParserLite : public CBase

XML SAX Parser for UPnP.

Since
s60 3.1 upnpxmlparser.lib

Inherits from

Public Member Functions
~CUPnPXMLParserLite ()
IMPORT_C CUPnPXMLParserLite * NewL ()
IMPORT_C CUPnPXMLParserLite * NewLC ()
IMPORT_C void ParseResultDataL ( RPointerArray < CUpnpObjectLite > &, const TDesC8 &, const TDesC &)
Protected Member Functions
TAny * GetExtendedInterface (const TInt32 )
void OnContentL (const TDesC8 &, TInt )
void OnEndDocumentL ( TInt )
void OnEndElementL (const RTagInfo &, TInt )
void OnEndPrefixMappingL (const RString &, TInt )
void OnError ( TInt )
void OnIgnorableWhiteSpaceL (const TDesC8 &, TInt )
void OnProcessingInstructionL (const TDesC8 &, const TDesC8 &, TInt )
void OnSkippedEntityL (const RString &, TInt )
void OnStartDocumentL (const RDocumentParameters &, TInt )
void OnStartElementL (const RTagInfo &, const RAttributeArray &, TInt )
void OnStartPrefixMappingL (const RString &, const RString &, TInt )
Private Member Functions
CUPnPXMLParserLite ()
void ConstructL ()
void SetAttributesL (CUpnpObjectLite &, const RAttributeArray &)
void SetIconIndex (const CUpnpObjectLite &)
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()
Private Attributes
HBufC8 * iElementValue
HBufC * iFormatString
TBool iObjectClass
RPointerArray < CUpnpObjectLite > * iResultRoot
CUPnPObjectStackLite * iStack
TBool iTitle
HBufC8 * iTitleBuf

Constructor & Destructor Documentation

CUPnPXMLParserLite()

CUPnPXMLParserLite ( ) [private]

Constructor.

~CUPnPXMLParserLite()

~CUPnPXMLParserLite ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

2nd phase constructor.

GetExtendedInterface(const TInt32)

TAny * GetExtendedInterface ( const TInt32 aUid ) [protected]

From MContentHandler.

Parameters

const TInt32 aUid

NewL()

IMPORT_C CUPnPXMLParserLite * NewL ( ) [static]

2-phased constructor.

NewLC()

IMPORT_C CUPnPXMLParserLite * NewLC ( ) [static]

2-phased constructor.

OnContentL(const TDesC8 &, TInt)

void OnContentL ( const TDesC8 & aBytes,
TInt aErrorCode
) [protected]

From MContentHandler.

Parameters

const TDesC8 & aBytes
TInt aErrorCode

OnEndDocumentL(TInt)

void OnEndDocumentL ( TInt aErrorCode ) [protected]

From MContentHandler.

Parameters

TInt aErrorCode

OnEndElementL(const RTagInfo &, TInt)

void OnEndElementL ( const RTagInfo & aElement,
TInt aErrorCode
) [protected]

From MContentHandler.

Parameters

const RTagInfo & aElement
TInt aErrorCode

OnEndPrefixMappingL(const RString &, TInt)

void OnEndPrefixMappingL ( const RString & aPrefix,
TInt aErrorCode
) [protected]

From MContentHandler.

Parameters

const RString & aPrefix
TInt aErrorCode

OnError(TInt)

void OnError ( TInt aErrorCode ) [protected]

From MContentHandler.

Parameters

TInt aErrorCode

OnIgnorableWhiteSpaceL(const TDesC8 &, TInt)

void OnIgnorableWhiteSpaceL ( const TDesC8 & aBytes,
TInt aErrorCode
) [protected]

From MContentHandler.

Parameters

const TDesC8 & aBytes
TInt aErrorCode

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

void OnProcessingInstructionL ( const TDesC8 & aTarget,
const TDesC8 & aData,
TInt aErrorCode
) [protected]

From MContentHandler.

Parameters

const TDesC8 & aTarget
const TDesC8 & aData
TInt aErrorCode

OnSkippedEntityL(const RString &, TInt)

void OnSkippedEntityL ( const RString & aName,
TInt aErrorCode
) [protected]

From MContentHandler.

Parameters

const RString & aName
TInt aErrorCode

OnStartDocumentL(const RDocumentParameters &, TInt)

void OnStartDocumentL ( const RDocumentParameters & aDocParam,
TInt aErrorCode
) [protected]

From MContentHandler.

Parameters

const RDocumentParameters & aDocParam
TInt aErrorCode

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

void OnStartElementL ( const RTagInfo & aElement,
const RAttributeArray & aAttributes,
TInt aErrorCode
) [protected]

From MContentHandler.

Parameters

const RTagInfo & aElement
const RAttributeArray & aAttributes
TInt aErrorCode

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

void OnStartPrefixMappingL ( const RString & aPrefix,
const RString & aUri,
TInt aErrorCode
) [protected]

From MContentHandler.

Parameters

const RString & aPrefix
const RString & aUri
TInt aErrorCode

ParseResultDataL(RPointerArray< CUpnpObjectLite > &, const TDesC8 &, const TDesC &)

IMPORT_C void ParseResultDataL ( RPointerArray < CUpnpObjectLite > & aResultArray,
const TDesC8 & aData,
const TDesC & aFormatString =  KNullDesC
)

Parses xml data to the array of objects.

Parameters

RPointerArray < CUpnpObjectLite > & aResultArray
const TDesC8 & aData
const TDesC & aFormatString =  KNullDesC the format of title. If KNullDesC title will be stored as it is. It's expected that the string is in the following format: _L( "0\t%S---" ); where "0" is a placeholder for icon index and S is a placeholder for title

SetAttributesL(CUpnpObjectLite &, const RAttributeArray &)

void SetAttributesL ( CUpnpObjectLite & aObject,
const RAttributeArray & aAttributes
) [private]

Sets element's attributes to the object.

Parameters

CUpnpObjectLite & aObject attributes will be set to this object
const RAttributeArray & aAttributes attributes to set

SetIconIndex(const CUpnpObjectLite &)

void SetIconIndex ( const CUpnpObjectLite & aObject ) [private]

Parameters

const CUpnpObjectLite & aObject

Member Data Documentation

HBufC8 * iElementValue

HBufC8 * iElementValue [private]

Element value Own.

HBufC * iFormatString

HBufC * iFormatString [private]

TBool iObjectClass

TBool iObjectClass [private]

RPointerArray< CUpnpObjectLite > * iResultRoot

RPointerArray < CUpnpObjectLite > * iResultRoot [private]

A pointer to result array from the client. Not own.

CUPnPObjectStackLite * iStack

CUPnPObjectStackLite * iStack [private]

A stack for UPnP objects. Own.

TBool iTitle

TBool iTitle [private]

HBufC8 * iTitleBuf

HBufC8 * iTitleBuf [private]