CConformanceChecker Class Reference

class CConformanceChecker : public CBase

Class for checking the the content of a DOM tree against the Conformance Document. (Checking legacy content.)

smileng.lib
Since
2.0

Inherits from

Constructor & Destructor Documentation

~CConformanceChecker()

~CConformanceChecker()

Destructor.

Member Functions Documentation

Check(CMDXMLDocument *, TMmsSmilVersion, TInt)

IMPORT_C TBoolCheck(CMDXMLDocument *aXmldoc,
TMmsSmilVersionaVersion,
TIntaFlags
)

Checks if the DOM tree's content is legacy content or not.

Parameters

CMDXMLDocument * aXmldoc- the root of the DOM tree - the version of the Conformance Document - the flags to gide the checking (combination of TFlags values)
TMmsSmilVersion aVersion
TInt aFlags

CheckBodyContent(CMDXMLNode *)

TBool CheckBodyContent(CMDXMLNode *aBody)[private]

Checks the content of the body element

Parameters

CMDXMLNode * aBody- the root of body subtree

CheckBodyStructure(CMDXMLNode *)

TBool CheckBodyStructure(CMDXMLNode *aBody)[private]
Checks the structure of the body element:
  • allowed to contain only par elements (one including seq element right after the body is allowed)

false - otherwise

Parameters

CMDXMLNode * aBody- the root of body subtree

CheckHeadStructure(CMDXMLNode *)

TBool CheckHeadStructure(CMDXMLNode *aHead)[private]

Checks the structure of the head element: allowed to contain only layout and meta element

Parameters

CMDXMLNode * aHead- the root of head subtree

CheckLayoutContent(CMDXMLNode *)

TBool CheckLayoutContent(CMDXMLNode *aLayout)[private]
Checks the content of the layout element
  • root-layout and max. 2 region elements are allowed

false - otherwise

Parameters

CMDXMLNode * aLayout- the root of layout subtree

CheckMixedRegionAttribute(TDesC &, TBool &, TBool &)

TBool CheckMixedRegionAttribute(TDesC &aValue,
TBool &aPercent,
TBool &aPixel
)const [private]

Checks if the given value is ending with percent or pixel and if this is conforming to the already set pixel and percent values.

Parameters

TDesC & aValue- value to check,should be the value of 'width', 'height', 'top', 'left' attributes for a region
TBool & aPercent- true if the value should end with percent
TBool & aPixel- true if the value should be in pixel

CheckParContent(CMDXMLNode *)

TBool CheckParContent(CMDXMLNode *aPar)[private]

Checks the content of the par element

Parameters

CMDXMLNode * aPar- the root of par subtree

CheckRegionNames(TDesC &, TBool &, TBool &)

TBool CheckRegionNames(TDesC &aValue,
TBool &aFoundImage,
TBool &aFoundText
)const [private]

Checks if the given value is exactly "Image" or "Text" and if it is duplicated (checking the transmitted boolean parameters).

Parameters

TDesC & aValue- value to check,
TBool & aFoundImage- true if the "Image" value will be duplicate
TBool & aFoundText- true if the "Text" value will be duplicate

IsInMilliseconds(TDesC &)

TBool IsInMilliseconds(TDesC &aValue)const [private]

Checks if a descriptor is ending with 'ms'

Parameters

TDesC & aValue- value to check

NewL()

IMPORT_C CConformanceChecker *NewL()[static]

Two-phased constructor.

Member Data Documentation

TInt iFlags

TInt iFlags[private]