CUPnPXMLParserLite Class Reference

class CUPnPXMLParserLite : public CBase

XML SAX Parser for UPnP.

Since
s60 3.1 upnpxmlparser.lib

Inherits from

Constructor & Destructor Documentation

CUPnPXMLParserLite()

CUPnPXMLParserLite()[private]

Constructor.

~CUPnPXMLParserLite()

~CUPnPXMLParserLite()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

2nd phase constructor.

GetExtendedInterface(const TInt32)

TAny *GetExtendedInterface(const TInt32aUid)[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)

voidOnContentL(const TDesC8 &aBytes,
TIntaErrorCode
)[protected]

From MContentHandler.

Parameters

const TDesC8 & aBytes
TInt aErrorCode

OnEndDocumentL(TInt)

voidOnEndDocumentL(TIntaErrorCode)[protected]

From MContentHandler.

Parameters

TInt aErrorCode

OnEndElementL(const RTagInfo &, TInt)

voidOnEndElementL(const RTagInfo &aElement,
TIntaErrorCode
)[protected]

From MContentHandler.

Parameters

const RTagInfo & aElement
TInt aErrorCode

OnEndPrefixMappingL(const RString &, TInt)

voidOnEndPrefixMappingL(const RString &aPrefix,
TIntaErrorCode
)[protected]

From MContentHandler.

Parameters

const RString & aPrefix
TInt aErrorCode

OnError(TInt)

voidOnError(TIntaErrorCode)[protected]

From MContentHandler.

Parameters

TInt aErrorCode

OnIgnorableWhiteSpaceL(const TDesC8 &, TInt)

voidOnIgnorableWhiteSpaceL(const TDesC8 &aBytes,
TIntaErrorCode
)[protected]

From MContentHandler.

Parameters

const TDesC8 & aBytes
TInt aErrorCode

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

voidOnProcessingInstructionL(const TDesC8 &aTarget,
const TDesC8 &aData,
TIntaErrorCode
)[protected]

From MContentHandler.

Parameters

const TDesC8 & aTarget
const TDesC8 & aData
TInt aErrorCode

OnSkippedEntityL(const RString &, TInt)

voidOnSkippedEntityL(const RString &aName,
TIntaErrorCode
)[protected]

From MContentHandler.

Parameters

const RString & aName
TInt aErrorCode

OnStartDocumentL(const RDocumentParameters &, TInt)

voidOnStartDocumentL(const RDocumentParameters &aDocParam,
TIntaErrorCode
)[protected]

From MContentHandler.

Parameters

const RDocumentParameters & aDocParam
TInt aErrorCode

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

voidOnStartElementL(const RTagInfo &aElement,
const RAttributeArray &aAttributes,
TIntaErrorCode
)[protected]

From MContentHandler.

Parameters

const RTagInfo & aElement
const RAttributeArray & aAttributes
TInt aErrorCode

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

voidOnStartPrefixMappingL(const RString &aPrefix,
const RString &aUri,
TIntaErrorCode
)[protected]

From MContentHandler.

Parameters

const RString & aPrefix
const RString & aUri
TInt aErrorCode

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

IMPORT_C voidParseResultDataL(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 &)

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

Sets element's attributes to the object.

Parameters

CUpnpObjectLite & aObjectattributes will be set to this object
const RAttributeArray & aAttributesattributes to set

SetIconIndex(const CUpnpObjectLite &)

voidSetIconIndex(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]