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()

void ConstructL ( ) [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 & aRef Entity reference to convert
TPtrC & aText Localized 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 *)

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

Parameters

const TDesC & aDTD File to load
RFs & aFileSystem
TRequestStatus * aStatus Engine's request status, which Localizer will complete when DTD parsing is ready

NewL()

CXCFWLocalizer * NewL ( ) [static]

Two-phased constructor.

ParseDTDL(RFileReadStream &)

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

Parameters

RFileReadStream & aStream file 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 & aText text to get entity reference for
TPtrC & aRef Entity reference returned

Member Data Documentation

CDesCArraySeg * iLocStrings

CDesCArraySeg * iLocStrings [private]

CDesCArraySeg * iReferences

CDesCArraySeg * iReferences [private]

TRequestStatus * iStatus

TRequestStatus * iStatus [private]