SysLangUtil Class Reference

class SysLangUtil

Language selection -related utility methods.

?more_complete_description

SysLangUtil.lib
Since
S60 3.0
Public Member Functions
IMPORT_C TIntGetDefaultLanguage(TInt &, RFs *)
IMPORT_C TIntGetInstalledLanguages(CArrayFixFlat< TInt > *&, RFs *)
IMPORT_C TBoolIsValidLanguage(const TInt &, RFs *)
IMPORT_C TIntRestoreSIMLanguage(TInt &, RFs *)
Private Member Functions
RFs *CheckFS(RFs *, TBool &, TInt &)

Member Functions Documentation

CheckFS(RFs *, TBool &, TInt &)

RFs *CheckFS(RFs *aRFs,
TBool &aExist,
TInt &aErr
)[private, static]

Parameters

RFs * aRFs
TBool & aExist
TInt & aErr

GetDefaultLanguage(TInt &, RFs *)

IMPORT_C TIntGetDefaultLanguage(TInt &aLanguage,
RFs *aFileServerSession = NULL
)[static]

Checks and returns the default language in a param given.

Parameters

TInt & aLanguageSymbian language as a number
RFs * aFileServerSession = NULLOptional file server session handle. If omitted, new one will be created.

GetInstalledLanguages(CArrayFixFlat< TInt > *&, RFs *)

IMPORT_C TIntGetInstalledLanguages(CArrayFixFlat< TInt > *&aLanguages,
RFs *aFileServerSession = NULL
)[static]

Checks and returns installed languages in a param given.

Parameters

CArrayFixFlat< TInt > *& aLanguagesSymbian languages as a arrayfixflat<int>, ownership given to user, so user must take care of proper cleanup!
RFs * aFileServerSession = NULLOptional file server session handle. If omitted, new one will be created.

IsValidLanguage(const TInt &, RFs *)

IMPORT_C TBoolIsValidLanguage(const TInt &aLanguage,
RFs *aFileServerSession = NULL
)[static]

Checks if language given as an argument is valid i.e. installed language.

Parameters

const TInt & aLanguagereturned Symbian language code matching SIM one.
RFs * aFileServerSession = NULLOptional file server session handle. If omitted, new one will be created.

RestoreSIMLanguage(TInt &, RFs *)

IMPORT_C TIntRestoreSIMLanguage(TInt &aLanguage,
RFs *aFileServerSession = NULL
)[static]

Returns SIM preferred languages in a param given.

Parameters

TInt & aLanguageLanguage that was stored in flash file system
RFs * aFileServerSession = NULLOptional file server session handle. If omitted, new one will be created.