|
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 <PtiKeyMapData.h> |
|
30 |
|
31 #include <languages.hrh> |
|
32 |
|
33 #include "PtiKeymappings_ITUT_65.h" |
|
34 |
|
35 // |
|
36 // Multitap keymap data table |
|
37 // |
|
38 const TUint16 MultitapData_table_Korean[] = |
|
39 { |
|
40 0x3131, |
|
41 0x3134, |
|
42 0x314f,0x3153, |
|
43 0x3139, |
|
44 0x3141, |
|
45 0x3157,0x315C, |
|
46 0x3145, |
|
47 0x3147, |
|
48 0x3161, |
|
49 0x3157,0x315C, |
|
50 0x3131, |
|
51 0x3134, |
|
52 0x314f,0x3153, |
|
53 0x3139, |
|
54 0x3141, |
|
55 0x3157,0x315C, |
|
56 0x3145, |
|
57 0x3163, |
|
58 0x3161, |
|
59 0x3157,0x315C, |
|
60 }; |
|
61 |
|
62 const TInt KMultitapDataSize_Korean = 26; |
|
63 |
|
64 |
|
65 const TPtiKeyBinding MultitapKeyBindings_table_Korean[] = |
|
66 { |
|
67 {EPtiKey1, EPtiCaseLower, 0, 1}, |
|
68 {EPtiKey2, EPtiCaseLower, 1, 1}, |
|
69 {EPtiKey3, EPtiCaseLower, 2, 2}, |
|
70 {EPtiKey4, EPtiCaseLower, 4, 1}, |
|
71 {EPtiKey5, EPtiCaseLower, 5, 1}, |
|
72 {EPtiKey6, EPtiCaseLower, 6, 2}, |
|
73 {EPtiKey7, EPtiCaseLower, 8, 1}, |
|
74 {EPtiKey8, EPtiCaseLower, 9, 1}, |
|
75 {EPtiKey9, EPtiCaseLower, 10, 1}, |
|
76 {EPtiKeyStar, EPtiCaseLower, 11, 0}, |
|
77 {EPtiKey0, EPtiCaseLower, 11, 2}, |
|
78 {EPtiKeyHash, EPtiCaseLower, 13, 0}, |
|
79 {EPtiKey1, EPtiCaseUpper, 13, 1}, |
|
80 {EPtiKey2, EPtiCaseUpper, 14, 1}, |
|
81 {EPtiKey3, EPtiCaseUpper, 15, 2}, |
|
82 {EPtiKey4, EPtiCaseUpper, 17, 1}, |
|
83 {EPtiKey5, EPtiCaseUpper, 18, 1}, |
|
84 {EPtiKey6, EPtiCaseUpper, 19, 2}, |
|
85 {EPtiKey7, EPtiCaseUpper, 21, 1}, |
|
86 {EPtiKey8, EPtiCaseUpper, 22, 1}, |
|
87 {EPtiKey9, EPtiCaseUpper, 23, 1}, |
|
88 {EPtiKeyStar, EPtiCaseUpper, 24, 0}, |
|
89 {EPtiKey0, EPtiCaseUpper, 24, 2}, |
|
90 {EPtiKeyHash, EPtiCaseUpper, 26, 0}, |
|
91 }; |
|
92 |
|
93 const TInt KMaxMultitapIndex_Korean = 24; |
|
94 |
|
95 // |
|
96 // Class implementation. |
|
97 // |
|
98 |
|
99 CPtiLangDataImplKorean* CPtiLangDataImplKorean::NewL() |
|
100 { |
|
101 return new (ELeave) CPtiLangDataImplKorean(); |
|
102 } |
|
103 |
|
104 |
|
105 TInt CPtiLangDataImplKorean::LanguageCode() const |
|
106 { |
|
107 return ELangKorean; |
|
108 } |
|
109 |
|
110 |
|
111 const TUint16* CPtiLangDataImplKorean::KeyData(TPtiKeyboardType aKeyboardType, TInt& aDataSize) const |
|
112 { |
|
113 if (aKeyboardType == EPtiKeyboard12Key) |
|
114 { |
|
115 aDataSize = KMultitapDataSize_Korean; |
|
116 return MultitapData_table_Korean; |
|
117 } |
|
118 aDataSize = 0; |
|
119 return NULL; |
|
120 } |
|
121 |
|
122 |
|
123 const TPtiKeyBinding* CPtiLangDataImplKorean::KeyBindingTable(TPtiKeyboardType aKeyboardType, TInt& aNumItems) const |
|
124 { |
|
125 if (aKeyboardType == EPtiKeyboard12Key) |
|
126 { |
|
127 aNumItems = KMaxMultitapIndex_Korean; |
|
128 return MultitapKeyBindings_table_Korean; |
|
129 } |
|
130 |
|
131 aNumItems = 0; |
|
132 return NULL; |
|
133 } |