|
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: |
|
15 * Provides the CAknFepManagerJapanese definition. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 #ifndef __AKN_FEP_UI_MANAGER_JAPANESE_H__ |
|
31 #define __AKN_FEP_UI_MANAGER_JAPANESE_H__ |
|
32 |
|
33 // INCLUDES |
|
34 #include <bldvariant.hrh> |
|
35 #include <AknUtils.h> |
|
36 #include <uikon.hrh> //TAknEditorNumericKeymap |
|
37 |
|
38 #include "AknFepManagerInterface.h" |
|
39 #include "AknFepUIManagerStateInterface.h" |
|
40 #include "AknFepUiManagerBase.h" |
|
41 #include "AknFepUiInputStateJapaneseBase.h" |
|
42 |
|
43 // CONSTANTS |
|
44 |
|
45 // MACROS |
|
46 |
|
47 // DATA TYPES |
|
48 |
|
49 // FUNCTION PROTOTYPES |
|
50 |
|
51 // FORWARD DECLARATIONS |
|
52 |
|
53 // CLASS DECLARATION |
|
54 class MAknFepManagerUIInterface; |
|
55 class MAknFepUIManagerStateInterface; |
|
56 class CAknFepCaseManager; |
|
57 class CPtiEngine; |
|
58 class MAknFepUICtrlContainerJapanese; |
|
59 |
|
60 /** |
|
61 * CAknFepUIManagerJapanese class. |
|
62 * This class is mounted based on CAknFepUiManager. |
|
63 * |
|
64 * @lib AknFep.lib |
|
65 * @since 2.6 |
|
66 */ |
|
67 class CAknFepUIManagerJapanese : public CAknFepUIManagerBase |
|
68 { |
|
69 private: |
|
70 /** |
|
71 * private constants |
|
72 */ |
|
73 enum |
|
74 { |
|
75 EBaseLanguageNumericKeymapIndex = 0x00FF, |
|
76 EMaskShiftOffset = 8 |
|
77 }; |
|
78 |
|
79 public: // Constructors and destructor |
|
80 /** |
|
81 * |
|
82 * |
|
83 * @since 2.6 |
|
84 */ |
|
85 static CAknFepUIManagerJapanese* NewL(MAknFepManagerUIInterface* aFepMan, CAknFepCaseManager* aCaseMan, TLanguage aLanguage); |
|
86 |
|
87 /** |
|
88 * |
|
89 * |
|
90 * @since 2.6 |
|
91 */ |
|
92 virtual ~CAknFepUIManagerJapanese(); |
|
93 |
|
94 public: // Functions from base classes |
|
95 /** |
|
96 * From CAknFepUIManagerBase |
|
97 * |
|
98 * @since 2.6 |
|
99 */ |
|
100 void SetCase(TCase aCase); |
|
101 |
|
102 /** |
|
103 * From CAknFepUIManagerBase |
|
104 * |
|
105 * @since 2.6 |
|
106 */ |
|
107 TBool HandleKeyL(TInt aKey, TKeyPressLength aLength, TEventCode aEventCode = EEventKey); |
|
108 |
|
109 /** |
|
110 * From CAknFepUIManagerBase |
|
111 * |
|
112 * @since 2.6 |
|
113 */ |
|
114 void CloseUI(); |
|
115 |
|
116 /** |
|
117 * From CAknFepUIManagerBase |
|
118 * |
|
119 * @since 2.6 |
|
120 */ |
|
121 void GetFormatOfFepInlineText(TCharFormat& aFormat, TInt& aNumberOfCharactersWithSameFormat, TInt aPositionOfCharacter) const; |
|
122 |
|
123 /** |
|
124 * From CAknFepUIManagerBase |
|
125 * |
|
126 * @since 2.6 |
|
127 */ |
|
128 TBool IsValidShiftKeyPress() const; |
|
129 |
|
130 /** |
|
131 * From CAknFepUIManagerBase |
|
132 * |
|
133 * @since 2.6 |
|
134 */ |
|
135 TUIState ChangeState(TUIState aState); |
|
136 |
|
137 /** |
|
138 * From CAknFepUIManagerBase |
|
139 * |
|
140 * @since 2.6 |
|
141 */ |
|
142 CDesCArrayFlat* CandidateArray(); |
|
143 |
|
144 /** |
|
145 * From CAknFepUIManagerBase |
|
146 * |
|
147 * @since 2.6 |
|
148 */ |
|
149 TBool IsPredictive() const; |
|
150 |
|
151 /** |
|
152 * From CAknFepUIManagerBase |
|
153 * |
|
154 * @since 2.6 |
|
155 */ |
|
156 void SetInlineEditUnderlineVisibility(TBool aFlag); |
|
157 |
|
158 /** |
|
159 * From MAknFepManagerInterface |
|
160 * |
|
161 * @since 2.8 |
|
162 */ |
|
163 #ifdef __ITI_LONGPRESS_NUM_SHIFT_COPYPASTE__ |
|
164 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
165 void SetMode(TInt aMode, TBool aPredictive, TBool aQwertyInputMode, TInt aKeyboardType); |
|
166 #else |
|
167 void SetMode(TInt aMode, TBool aPredictive, TBool aQwertyInputMode); |
|
168 #endif |
|
169 #else |
|
170 void SetMode(TInt aMode, TBool aPredictive, TBool aQwertyInputMode); |
|
171 #endif // __ITI_LONGPRESS_NUM_SHIFT_COPYPASTE__ |
|
172 /** |
|
173 * From MAknFepUIManagerStateInterface |
|
174 * |
|
175 * @since 3.0 |
|
176 */ |
|
177 TBool IsQwerty() const; |
|
178 |
|
179 /** |
|
180 * From MAknFepManagerInterface |
|
181 * this is in base class only |
|
182 * @since 3.2 |
|
183 */ |
|
184 void HandleCommandL(TInt aCommandId); |
|
185 |
|
186 /** |
|
187 * From MAknFepUIManagerStateInterface |
|
188 * |
|
189 * @since 3.2 |
|
190 */ |
|
191 void ResourceChanged(TInt aType); |
|
192 |
|
193 private: // Functions from base classes |
|
194 /** |
|
195 * From CAknFepUIManagerBase |
|
196 * |
|
197 * @since 2.6 |
|
198 */ |
|
199 TAknFepInputStateBase* FepUIState(); |
|
200 |
|
201 public: // New Functions |
|
202 /** |
|
203 * |
|
204 * |
|
205 * @since 2.6 |
|
206 */ |
|
207 MAknFepUICtrlContainerJapanese* UIContainer() const; |
|
208 |
|
209 private: // New Functions |
|
210 /** |
|
211 * |
|
212 * |
|
213 * @since 2.6 |
|
214 */ |
|
215 CAknFepUIManagerJapanese(MAknFepManagerUIInterface* aFepMan, CAknFepCaseManager* aCaseMan); |
|
216 |
|
217 /** |
|
218 * |
|
219 * |
|
220 * @since 2.6 |
|
221 */ |
|
222 void ConstructL(TLanguage aLanguage); |
|
223 |
|
224 private: // Data |
|
225 |
|
226 TAknFepUiInputStateJapaneseBase iFepUiState; |
|
227 |
|
228 MAknFepUICtrlContainerJapanese* iContainerPane; |
|
229 |
|
230 CDesCArrayFlat* iCandidateArray; //owned |
|
231 |
|
232 TBool iFlagInlineEditUnderline; // underline flag in Inline edit |
|
233 |
|
234 TBool iQwerty; |
|
235 }; |
|
236 |
|
237 #endif //__AKN_FEP_UI_MANAGER_JAPANESE_H__ |
|
238 |
|
239 // End of file |