CSmilParser Class Reference

class CSmilParser : public CBase

SMIL2 semantical parser class

Inherits from

Nested Classes and Structures

Public Member Functions
~CSmilParser()
voidAttributeValueL(const TDesC &, const TDesC &)
voidAttributesEndL(TInt)
voidBeginElementL(const TDesC &)
TBool CheckSystemAttribute(const TDesC &, const TDesC &)
voidEndElementL(const TDesC &)
IMPORT_C CSmilParser *NewL(MSmilPlayer *)
IMPORT_C TRgbParseColor(const TDesC &, TBool &)
IMPORT_C CSmilPresentation *ParseL(const TDesC &, const TDesC &)
IMPORT_C CSmilPresentation *ParseL(const CMDXMLDocument *, const TDesC &)
IMPORT_C voidSetMaxDownUpScaling(TReal32, TReal32)
Private Member Functions
CSmilParser()
voidConstructL(MSmilPlayer *)
voidInit()
voidParseTimeListL(const TDesC &, TBool)
TInt StringToIntValue(const TDesC &, TInt)
TReal32 StringToRealValue(const TDesC &, TReal32)
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 Member Enumerations
enumTParseState {
EInitial, ESmil, EHead, ELayout, ELayoutFinished, EHeadFinished, EBody, EBodyFinished, ESmilFinished
}
Private Attributes
CSmilAnchor *iAnchor
CSmilArea *iArea
CSmilObject *iCurrent
CSmilRegion *iCurrentRegion
CSmilTransition *iCurrentTransition
TInt iDepth
TReal iDown
TInt iIgnoreDepth
CLinkedList< Namespace > *iNamespaces
TPtrC iParamName
TPtrC iParamValue
MSmilPlayer *iPlayer
CSmilPresentation *iPresentation
TBool iScalingEnabled
TBool iSkipContent
TParseState iState
CLinkedList< Switch > *iSwitchStack
TPtrC iTag
CSmilTimeContainer *iTimeContainer
TInt iTimegraphSize
TBool iUnknownElement
TReal iUp

Constructor & Destructor Documentation

CSmilParser()

CSmilParser()[private]

~CSmilParser()

~CSmilParser()[virtual]

Destructor.

Member Functions Documentation

AttributeValueL(const TDesC &, const TDesC &)

voidAttributeValueL(const TDesC &aName,
const TDesC &aValue
)

Parameters

const TDesC & aName
const TDesC & aValue

AttributesEndL(TInt)

voidAttributesEndL(TIntaCount)

Parameters

TInt aCount

BeginElementL(const TDesC &)

voidBeginElementL(const TDesC &aName)

Parameters

const TDesC & aName

CheckSystemAttribute(const TDesC &, const TDesC &)

TBool CheckSystemAttribute(const TDesC &aName,
const TDesC &aValue
)

Parameters

const TDesC & aName
const TDesC & aValue

ConstructL(MSmilPlayer *)

voidConstructL(MSmilPlayer *aPlayer)[private, virtual]

Parameters

MSmilPlayer * aPlayer

EndElementL(const TDesC &)

voidEndElementL(const TDesC &aName)

Parameters

const TDesC & aName

Init()

voidInit()[private]

NewL(MSmilPlayer *)

IMPORT_C CSmilParser *NewL(MSmilPlayer *aPlayer)[static]

Parser phase one constructor

Takes the player interface object as a parameter. This interface is used by the parser for reporting parse errors and for getting values of the content control attributes. It is also passed to the created presentation object.

Parameters

MSmilPlayer * aPlayer

ParseColor(const TDesC &, TBool &)

IMPORT_C TRgbParseColor(const TDesC &aString,
TBool &aTransparent
)[static]

Parses a CSS2 style color value ("red", "green", "#ffcc44", ...) The aTransparent flag is set if the parsing fails

Parameters

const TDesC & aString
TBool & aTransparent

ParseL(const TDesC &, const TDesC &)

IMPORT_C CSmilPresentation *ParseL(const TDesC &aSmil,
const TDesC &aBaseUrl
)

Parses the given SMIL source, constructing the presentation object. The given base URL is used for resolving the URLs in the presentation.

Verbose parse error messages are available through the MSmilPlayer interface.

Parameters

const TDesC & aSmil
const TDesC & aBaseUrl

ParseL(const CMDXMLDocument *, const TDesC &)

IMPORT_C CSmilPresentation *ParseL(const CMDXMLDocument *aSmilDoc,
const TDesC &aBaseUrl
)

Parses the given SMIL document, constructing the presentation object. The given base URL is used for resolving the URLs in the presentation.

Parameters

const CMDXMLDocument * aSmilDoc
const TDesC & aBaseUrl

ParseTimeListL(const TDesC &, TBool)

voidParseTimeListL(const TDesC &aString,
TBoolaBegin
)[private]

Parameters

const TDesC & aString
TBool aBegin

SetMaxDownUpScaling(TReal32, TReal32)

IMPORT_C voidSetMaxDownUpScaling(TReal32aDown,
TReal32aUp
)

Enables the layout scaling. This functionality shrinks the layout so that it fits the screensize while maintaining the original aspect ratio. Images and other media is not scaled unless scaling is is enabled by the fit attribute of the region element of the source document.

Parameters

TReal32 aDown
TReal32 aUp

StringToIntValue(const TDesC &, TInt)

TInt StringToIntValue(const TDesC &aString,
TIntaDefault
)[private, static]

Parameters

const TDesC & aString
TInt aDefault

StringToRealValue(const TDesC &, TReal32)

TReal32 StringToRealValue(const TDesC &aString,
TReal32aDefault
)[private, static]

Parameters

const TDesC & aString
TReal32 aDefault

Member Enumerations Documentation

Enum TParseState

Enumerators

EInitial
ESmil
EHead
ELayout
ELayoutFinished
EHeadFinished
EBody
EBodyFinished
ESmilFinished

Member Data Documentation

CSmilAnchor * iAnchor

CSmilAnchor *iAnchor[private]

CSmilArea * iArea

CSmilArea *iArea[private]

CSmilObject * iCurrent

CSmilObject *iCurrent[private]

CSmilRegion * iCurrentRegion

CSmilRegion *iCurrentRegion[private]

CSmilTransition * iCurrentTransition

CSmilTransition *iCurrentTransition[private]

TInt iDepth

TInt iDepth[private]

TReal iDown

TReal iDown[private]

TInt iIgnoreDepth

TInt iIgnoreDepth[private]

CLinkedList< Namespace > * iNamespaces

CLinkedList< Namespace > *iNamespaces[private]

TPtrC iParamName

TPtrC iParamName[private]

TPtrC iParamValue

TPtrC iParamValue[private]

MSmilPlayer * iPlayer

MSmilPlayer *iPlayer[private]

CSmilPresentation * iPresentation

CSmilPresentation *iPresentation[private]

TBool iScalingEnabled

TBool iScalingEnabled[private]

TBool iSkipContent

TBool iSkipContent[private]

TParseState iState

TParseState iState[private]

CLinkedList< Switch > * iSwitchStack

CLinkedList< Switch > *iSwitchStack[private]

TPtrC iTag

TPtrC iTag[private]

CSmilTimeContainer * iTimeContainer

CSmilTimeContainer *iTimeContainer[private]

TInt iTimegraphSize

TInt iTimegraphSize[private]

TBool iUnknownElement

TBool iUnknownElement[private]

TReal iUp

TReal iUp[private]