|
1 /* |
|
2 * Copyright (c) 2007 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 the License "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_157.h" |
|
34 |
|
35 class CPtiVariantITUT_157DataFactory : public CPtiKeyMapDataFactory |
|
36 { |
|
37 public: |
|
38 CPtiVariantITUT_157DataFactory() {} |
|
39 static CPtiVariantITUT_157DataFactory* NewL(); |
|
40 MPtiKeyMapData* KeyMapDataForLanguageL(TInt aLanguageCode); |
|
41 void ListLanguagesL(RArray<TInt>& aResult); |
|
42 }; |
|
43 |
|
44 |
|
45 CPtiVariantITUT_157DataFactory* CPtiVariantITUT_157DataFactory::NewL() |
|
46 { |
|
47 return new (ELeave) CPtiVariantITUT_157DataFactory(); |
|
48 } |
|
49 |
|
50 |
|
51 const TImplementationProxy ImplementationTable[] = |
|
52 { |
|
53 IMPLEMENTATION_PROXY_ENTRY(0x10282569, CPtiVariantITUT_157DataFactory::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_157DataFactory::KeyMapDataForLanguageL(TInt aLanguageCode) |
|
65 { |
|
66 if (aLanguageCode == ELangEnglish_Taiwan) |
|
67 { |
|
68 return CPtiLangDataImplEnglish_Taiwan::NewL(); |
|
69 } |
|
70 |
|
71 return NULL; |
|
72 } |
|
73 |
|
74 |
|
75 void CPtiVariantITUT_157DataFactory::ListLanguagesL(RArray<TInt>& aResult) |
|
76 { |
|
77 CleanupClosePushL(aResult); |
|
78 aResult.AppendL(ELangEnglish_Taiwan); |
|
79 CleanupStack::Pop(); |
|
80 } |
|
81 |
|
82 // End of file |