ocrsrv_stub/inc/language.inl
changeset 0 0ce1b5ce9557
equal deleted inserted replaced
-1:000000000000 0:0ce1b5ce9557
       
     1 /*
       
     2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Inline functions for language mgr
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // Get the id of the engine
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 inline const TInt COCREngine::GetEngineId() const
       
    24     {
       
    25     return iEngineId;
       
    26     }
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // Get supported languages
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 inline const RArray<TOCRLanguage>& COCREngine::GetSupportLanguage() const  
       
    33     {
       
    34     return iLanguageList;
       
    35     } 
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // Get supported language list
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 inline const RArray<TOCRCombinedLanguage>& COCREngine::GetSupportCombinedLanguage() const 
       
    42     {
       
    43     return iCombinedLanguageList;
       
    44     } 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // Test if the language is a eastern language
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 inline TBool COCREngine::IsEast(const TLanguage aLanguage) const
       
    51     {
       
    52 	return ((aLanguage == ELangPrcChinese) ||
       
    53 		(aLanguage == ELangJapanese) ||
       
    54 		(aLanguage == ELangHongKongChinese) ||
       
    55 		(aLanguage == ELangTaiwanChinese));
       
    56     }
       
    57 
       
    58 // -----------------------------------------------------------------------------
       
    59 // ?implementation_description
       
    60 // -----------------------------------------------------------------------------
       
    61 //
       
    62 inline TInt COCREngineList::GetEngineCount() const
       
    63     {
       
    64     return iOCREngineList.Count();
       
    65     }
       
    66 
       
    67 // End Of File