textinput/ptienginev2/languages/PtiFactory_ITUT_05.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_05.h"
       
    34 
       
    35 class CPtiVariantITUT_05DataFactory : public CPtiKeyMapDataFactory
       
    36     {
       
    37     public:
       
    38         CPtiVariantITUT_05DataFactory() {}
       
    39         static CPtiVariantITUT_05DataFactory* NewL();
       
    40         MPtiKeyMapData* KeyMapDataForLanguageL(TInt aLanguageCode);
       
    41         void ListLanguagesL(RArray<TInt>& aResult);
       
    42     };
       
    43 
       
    44 
       
    45 CPtiVariantITUT_05DataFactory* CPtiVariantITUT_05DataFactory::NewL()
       
    46     {
       
    47     return new (ELeave) CPtiVariantITUT_05DataFactory();
       
    48     }
       
    49 
       
    50 
       
    51 const TImplementationProxy ImplementationTable[] =
       
    52     {
       
    53     IMPLEMENTATION_PROXY_ENTRY(0x1028189b, CPtiVariantITUT_05DataFactory::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_05DataFactory::KeyMapDataForLanguageL(TInt aLanguageCode)
       
    65     {
       
    66     if (aLanguageCode == ELangItalian)
       
    67         {
       
    68         return CPtiLangDataImplItalian::NewL();
       
    69         }
       
    70 
       
    71     return NULL;
       
    72     }
       
    73 
       
    74 
       
    75 void CPtiVariantITUT_05DataFactory::ListLanguagesL(RArray<TInt>& aResult)
       
    76     {
       
    77     aResult.AppendL(ELangItalian);
       
    78     }
       
    79 
       
    80 // End of file