textinput/ptienginev2/languages/PtiFactory_ITUT_14.cpp
changeset 0 eb1f2e154e89
child 9 e6a39382bb9c
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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: Keymapping data implementation for 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #include <ecom/implementationproxy.h>
       
    30 
       
    31 #include <languages.hrh>
       
    32 
       
    33 #include "PtiKeymappings_ITUT_14.h"
       
    34 
       
    35 class CPtiVariantITUT_14DataFactory : public CPtiKeyMapDataFactory
       
    36     {
       
    37     public:
       
    38         CPtiVariantITUT_14DataFactory() {}
       
    39         static CPtiVariantITUT_14DataFactory* NewL();
       
    40         MPtiKeyMapData* KeyMapDataForLanguageL(TInt aLanguageCode);
       
    41         void ListLanguagesL(RArray<TInt>& aResult);
       
    42     };
       
    43 
       
    44 
       
    45 CPtiVariantITUT_14DataFactory* CPtiVariantITUT_14DataFactory::NewL()
       
    46     {
       
    47     return new (ELeave) CPtiVariantITUT_14DataFactory();
       
    48     }
       
    49 
       
    50 
       
    51 const TImplementationProxy ImplementationTable[] =
       
    52     {
       
    53     IMPLEMENTATION_PROXY_ENTRY(0x102818A1, CPtiVariantITUT_14DataFactory::NewL)
       
    54     };
       
    55 
       
    56 
       
    57 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    58     {
       
    59     aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    60     return ImplementationTable;
       
    61     }
       
    62 
       
    63 
       
    64 MPtiKeyMapData* CPtiVariantITUT_14DataFactory::KeyMapDataForLanguageL(TInt aLanguageCode)
       
    65     {
       
    66     if (aLanguageCode == ELangTurkish)
       
    67         {
       
    68         return CPtiLangDataImplTurkish::NewL();
       
    69         }
       
    70 
       
    71     return NULL;
       
    72     }
       
    73 
       
    74 
       
    75 void CPtiVariantITUT_14DataFactory::ListLanguagesL(RArray<TInt>& aResult)
       
    76     {
       
    77     aResult.AppendL(ELangTurkish);
       
    78     }
       
    79 
       
    80 // End of file