CPtiLanguageDatabase Class Reference

Link against: ptiengine.lib


#include <
PtiLanguageDatabase.h>

Inherits MPtiLanguageDatabase.


Detailed Description

Default implementation for
MPtiLanguageDatabase interface.

Public Member Functions

IMPORT_C ~CPtiLanguageDatabase ()
IMPORT_C TInt CoreUID () const
 Implementation UID for core object owning this data.
IMPORT_C TInt NumLanguages () const
 Number on languages implemented in this database.
IMPORT_C TInt LanguageCode (TInt aIndex) const
 Symbian OS language code for language data.
IMPORT_C TInt SubLanguageCode (TInt aIndex) const
 Returns sub-language code.
IMPORT_C TInt8 * LangData (TInt aIndex) const
 Returns pointer to raw language data.
IMPORT_C TInt8 * LangData (TInt aIndex, TAny *aNativeParams) const
 Returns pointer to language data.
IMPORT_C TInt8 * PinyinPhraseData () const
 Returns pointer to PinYin phrase input related data.
IMPORT_C TInt8 * ZhuyinPhraseData () const
 Returns pointer to ZhuYin phrase input related data.
IMPORT_C TInt NativeId (TInt aIndex) const
 Returns core object's internal language id value.
void SetDestructorKeyId (TInt aDtorKeyId)

Static Public Member Functions

static IMPORT_C CPtiLanguageDatabaseCreateDatabaseL (TUid aImplUid)
 Creates a language database instance for given implemenation UID.
static IMPORT_C CArrayFix<
TInt > * 
ListDatabasesLC (TInt aCoreUid)
 Returns a list of all the availbale language databases related to given core object.
static IMPORT_C TInt LanguageCodeForUid (TInt aUid)
 Returns Symbian OS language code for the first language in given language database.
static IMPORT_C TInt CreateMappingTableL (TInt aCoreUid, RArray< TPtiLangDatabaseMapping > &aResult)
 Fills given array with TPtiLangDatabaseMapping bindings for given core object.
static IMPORT_C TInt CreateMappingTableWithOpaqueL (TInt aCoreUid, RArray< TPtiLangDatabaseMappingOpaque > &aResult)

Constructor & Destructor Documentation

IMPORT_C CPtiLanguageDatabase::~CPtiLanguageDatabase  ) 
 

Member Function Documentation

IMPORT_C TInt CPtiLanguageDatabase::CoreUID  )  const [virtual]
 

Implementation UID for core object owning this data.

Since:
S60 V3.0
Returns:
Implementation Uid value of owning core object.

Implements MPtiLanguageDatabase.

static IMPORT_C CPtiLanguageDatabase* CPtiLanguageDatabase::CreateDatabaseL TUid  aImplUid  )  [static]
 

Creates a language database instance for given implemenation UID.

Since:
S60 V3.0
Returns:
Pointer to language database instance. NULL if not found.
static IMPORT_C TInt CPtiLanguageDatabase::CreateMappingTableL TInt  aCoreUid,
RArray< TPtiLangDatabaseMapping > &  aResult
[static]
 

Fills given array with TPtiLangDatabaseMapping bindings for given core object.

Items in list bind Symbian OS language code to language database implemantion uid.

Since:
S60 V3.0
Parameters:
aCoreUid Core object implemenation uid.
aResult Resulting list.
Returns:
Number of items in aResult.
static IMPORT_C TInt CPtiLanguageDatabase::CreateMappingTableWithOpaqueL TInt  aCoreUid,
RArray< TPtiLangDatabaseMappingOpaque > &  aResult
[static]
 
IMPORT_C TInt8* CPtiLanguageDatabase::LangData TInt  aIndex,
TAny *  aNativeParams
const [virtual]
 

Returns pointer to language data.

The meaning of the data in array depends on the core object implementation.

Since:
S60 V3.0
Parameters:
aIndex Index of language implementation.
aNativeParams Core object related extra parameters.
Returns:
Pointer to language data array.

Implements MPtiLanguageDatabase.

IMPORT_C TInt8* CPtiLanguageDatabase::LangData TInt  aIndex  )  const [virtual]
 

Returns pointer to raw language data.

on the core object implementation.

Since:
S60 V3.0
Parameters:
aIndex Index of language implementation.
Returns:
Pointer to language data array.

Implements MPtiLanguageDatabase.

IMPORT_C TInt CPtiLanguageDatabase::LanguageCode TInt  aIndex  )  const [virtual]
 

Symbian OS language code for language data.

Since:
S60 V3.0
Parameters:
aIndex Index of language implementation (in case one database holds data for several languages).
Returns:
Symbian OS language code for language data identified by aIndex. 0, if aIndex is greater than number of languages in this database.

Implements MPtiLanguageDatabase.

static IMPORT_C TInt CPtiLanguageDatabase::LanguageCodeForUid TInt  aUid  )  [static]
 

Returns Symbian OS language code for the first language in given language database.

Since:
S60 V3.0
Parameters:
aUid An implementation uid for language database.
Returns:
Symbian OS language constant. 0, if not found.
static IMPORT_C CArrayFix<TInt>* CPtiLanguageDatabase::ListDatabasesLC TInt  aCoreUid  )  [static]
 

Returns a list of all the availbale language databases related to given core object.

List will be the topmost item in cleanup stack.

Since:
S60 V3.0
Parameters:
aCoreUid Implementation uid for core object.
Returns:
Pointer to a list containing implemention uids of language databases.
IMPORT_C TInt CPtiLanguageDatabase::NativeId TInt  aIndex  )  const [virtual]
 

Returns core object's internal language id value.

The meaning of this value depends on core object implementation.

Since:
S60 V3.0
Returns:
Core object internal language id.

Implements MPtiLanguageDatabase.

IMPORT_C TInt CPtiLanguageDatabase::NumLanguages  )  const [virtual]
 

Number on languages implemented in this database.

Since:
S60 V3.0 return Number languages implemented in this database.

Implements MPtiLanguageDatabase.

IMPORT_C TInt8* CPtiLanguageDatabase::PinyinPhraseData  )  const [virtual]
 

Returns pointer to PinYin phrase input related data.

Since:
S60 V3.0
Returns:
Pointer to PinYin phrase input data.

Implements MPtiLanguageDatabase.

void CPtiLanguageDatabase::SetDestructorKeyId TInt  aDtorKeyId  )  [inline]
 
IMPORT_C TInt CPtiLanguageDatabase::SubLanguageCode TInt  aIndex  )  const [virtual]
 

Returns sub-language code.

The meaning of this value depends on core object implementation. Ususally this value is needed for enumerating several dialects that are related to one Symbian OS language constant.

Since:
S60 V3.0
Returns:
Sub-language id.

Implements MPtiLanguageDatabase.

IMPORT_C TInt8* CPtiLanguageDatabase::ZhuyinPhraseData  )  const [virtual]
 

Returns pointer to ZhuYin phrase input related data.

Since:
S60 V3.0
Returns:
Pointer to ZhuYin phrase input data.

Implements MPtiLanguageDatabase.


The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2007
Back to top