TExtendedLocale Class Reference

class TExtendedLocale

Extended locale class

This class holds a collection of locale information. It contains a TLocale internally. It has methods to load a locale DLL and to set the system wide locale information.

Constructor & Destructor Documentation

TExtendedLocale()

IMPORT_CTExtendedLocale()

Member Functions Documentation

DoLoadLocale(const TDesC &, TLibraryFunction *)

TInt DoLoadLocale(const TDesC &aLocaleDllName,
TLibraryFunction *aExportList
)[private]

Parameters

const TDesC & aLocaleDllName
TLibraryFunction * aExportList

DoUpdateLanguageSettings(TLibraryFunction *)

voidDoUpdateLanguageSettings(TLibraryFunction *aExportList)[private]

Parameters

TLibraryFunction * aExportList

DoUpdateLocaleSettings(TLibraryFunction *)

voidDoUpdateLocaleSettings(TLibraryFunction *aExportList)[private]

Parameters

TLibraryFunction * aExportList

DoUpdateTimeDateFormat(TLibraryFunction *)

voidDoUpdateTimeDateFormat(TLibraryFunction *aExportList)[private]

Parameters

TLibraryFunction * aExportList

GetCurrencySymbol()

IMPORT_C TPtrCGetCurrencySymbol()

GetLocale()

TLocale *GetLocale()[inline]

Get the pointer to the TLocale object contained in this extended locale.

Pointer to the TLocale object.

GetLocaleDllName(TLocaleAspect, TDes &)

IMPORT_C TIntGetLocaleDllName(TLocaleAspectaLocaleDataSet,
TDes &aDllName
)

Parameters

TLocaleAspect aLocaleDataSet
TDes & aDllName

GetLongDateFormatSpec()

IMPORT_C TPtrCGetLongDateFormatSpec()

GetPreferredCollationMethod(TInt)

IMPORT_C TCollationMethodGetPreferredCollationMethod(TIntindex = 0)

Parameters

TInt index = 0

GetShortDateFormatSpec()

IMPORT_C TPtrCGetShortDateFormatSpec()

GetTimeFormatSpec()

IMPORT_C TPtrCGetTimeFormatSpec()

LoadLocale(const TDesC &)

IMPORT_C TIntLoadLocale(const TDesC &aLocaleDllName)

Parameters

const TDesC & aLocaleDllName

LoadLocale(const TDesC &, const TDesC &, const TDesC &)

IMPORT_C TIntLoadLocale(const TDesC &aLanguageLocaleDllName,
const TDesC &aRegionLocaleDllName,
const TDesC &aCollationLocaleDllName
)

Parameters

const TDesC & aLanguageLocaleDllName
const TDesC & aRegionLocaleDllName
const TDesC & aCollationLocaleDllName

LoadLocaleAspect(TUint, const TDesC &)

IMPORT_C TIntLoadLocaleAspect(TUintaAspectGroup,
const TDesC &aLocaleDllName
)

Parameters

TUint aAspectGroup
const TDesC & aLocaleDllName

LoadLocaleAspect(const TDesC &)

IMPORT_C TIntLoadLocaleAspect(const TDesC &aLocaleDllName)

Parameters

const TDesC & aLocaleDllName

LoadSystemSettings()

IMPORT_C voidLoadSystemSettings()

SaveSystemSettings()

IMPORT_C TIntSaveSystemSettings()

SetCurrencySymbol(const TDesC &)

IMPORT_C TIntSetCurrencySymbol(const TDesC &aSymbol)

Parameters

const TDesC & aSymbol

Member Data Documentation

const LCharSet * iDefaultCharSet

const LCharSet *iDefaultCharSet[private]

SLocaleLanguage iLanguageSettings

SLocaleLanguage iLanguageSettings[private]

TLocale iLocale

TLocale iLocale[private]

SLocaleLocaleSettings iLocaleExtraSettings

SLocaleLocaleSettings iLocaleExtraSettings[private]

SLocaleTimeDateFormat iLocaleTimeDateFormat

SLocaleTimeDateFormat iLocaleTimeDateFormat[private]

const LCharSet * iPreferredCharSet

const LCharSet *iPreferredCharSet[private]