CXCFWLocalizer Class Reference

class CXCFWLocalizer : public CBase

Localization handling class. Responsible for holding entity references and their corresponding text values loaded from a DTD file. Used for content localization purposes in XCFW.

XCFW.lib
Since
Series 60 3.1

Inherits from

Constructor & Destructor Documentation

CXCFWLocalizer()

CXCFWLocalizer()[private]

C++ default constructor.

~CXCFWLocalizer()

~CXCFWLocalizer()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

EntityRefToText(TDesC &, TPtrC &)

TInt EntityRefToText(TDesC &aRef,
TPtrC &aText
)
Converts a XML entity reference to localized text
Since
Series 60 3.1

Parameters

TDesC & aRefEntity reference to convert
TPtrC & aTextLocalized text returned

LastError()

TInt LastError()
Returns error code from the last LoadDTDL operation Engine uses this to check that operation was successful when Localizer completes the pending request.
Since
Series 60 3.1

LoadDTDL(const TDesC &, RFs &, TRequestStatus *)

voidLoadDTDL(const TDesC &aDTD,
RFs &aFileSystem,
TRequestStatus *aStatus
)
Loads Entity references from DTD file
Since
Series 60 3.1

Parameters

const TDesC & aDTDFile to load
RFs & aFileSystem
TRequestStatus * aStatusEngine's request status, which Localizer will complete when DTD parsing is ready

NewL()

CXCFWLocalizer *NewL()[static]

Two-phased constructor.

ParseDTDL(RFileReadStream &)

voidParseDTDL(RFileReadStream &aStream)[private]
DTD file parsing facility
Since
Series 60 3.1

Parameters

RFileReadStream & aStreamfile stream to parse

TextToEntityRef(TDesC &, TPtrC &)

TInt TextToEntityRef(TDesC &aText,
TPtrC &aRef
)

Converts given localized text into an entity reference ince Series 60 3.1

Parameters

TDesC & aTexttext to get entity reference for
TPtrC & aRefEntity reference returned

Member Data Documentation

CDesCArraySeg * iLocStrings

CDesCArraySeg *iLocStrings[private]

CDesCArraySeg * iReferences

CDesCArraySeg *iReferences[private]

TRequestStatus * iStatus

TRequestStatus *iStatus[private]