author | Simon Howkins <simonh@symbian.org> |
Mon, 15 Nov 2010 14:00:51 +0000 | |
branch | RCL_3 |
changeset 59 | 7febbd162ded |
parent 56 | 8152b1f1763a |
permissions | -rw-r--r-- |
44 | 1 |
/* |
2 |
* Copyright (c) 2003 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: Declaration of core part of CAknFepLanguageManager class. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
||
22 |
||
23 |
||
24 |
||
25 |
||
26 |
||
27 |
||
28 |
||
29 |
#ifndef __AKN_FEP_LANGUAGE_MANAGER__H__ |
|
30 |
#define __AKN_FEP_LANGUAGE_MANAGER__H__ |
|
31 |
||
32 |
// INCLUDES |
|
33 |
#include <e32base.h> |
|
34 |
#include <coemain.h> |
|
35 |
#include <badesca.h> |
|
36 |
||
37 |
#include "AknFepGlobalEnums.h" // TWidthChar |
|
38 |
||
39 |
// CONSTANTS |
|
40 |
||
41 |
// MACROS |
|
42 |
||
43 |
// DATA TYPES |
|
44 |
||
45 |
// FUNCTION PROTOTYPES |
|
46 |
||
47 |
// FORWARD DECLARATION |
|
48 |
class CAknFepPenInputImePlugin; |
|
49 |
class MInputMethodInterface; |
|
50 |
||
51 |
// CLASS DECLARATION |
|
52 |
class MAknFepManagerInterface; |
|
53 |
class MAknFepManagerUIInterface; |
|
54 |
class CAknFepCaseManager; |
|
55 |
class RPeninputServer; |
|
56 |
class TImePlguinImplDetail; |
|
57 |
class CAknFepPluginManager; |
|
58 |
class CAknFepSharedDataInterface; |
|
59 |
||
60 |
/** |
|
61 |
* CAknFepLanguageManager is a part of Japanese FEP. |
|
62 |
* |
|
63 |
* @lib AknFep.lib |
|
64 |
* @since 2.6 |
|
65 |
* @see CAknFepManager, other application |
|
66 |
*/ |
|
67 |
class CAknFepLanguageManager : public CBase |
|
68 |
{ |
|
69 |
private: // enum |
|
70 |
enum |
|
71 |
{ |
|
72 |
EUiManWestern, |
|
73 |
EUiManChinese, |
|
74 |
EUiManJapanese, |
|
75 |
EUiManKorean, |
|
76 |
EUiManMax |
|
77 |
}; |
|
78 |
||
79 |
public: // Constructer and Destructor |
|
80 |
/** |
|
81 |
* first phase construction |
|
82 |
* |
|
83 |
* @since 2.6 |
|
84 |
* @param aFepMan |
|
85 |
* @param aCaseMan |
|
86 |
* @param aLanguage |
|
87 |
*/ |
|
88 |
static CAknFepLanguageManager* NewL( MAknFepManagerUIInterface* aFepMan, |
|
89 |
CAknFepCaseManager* aCaseMan, |
|
90 |
CAknFepSharedDataInterface* aSharedData = NULL ); |
|
91 |
||
92 |
/** |
|
93 |
* Destructor. |
|
94 |
* |
|
95 |
* @since 2.6 |
|
96 |
*/ |
|
97 |
virtual ~CAknFepLanguageManager(); |
|
98 |
||
99 |
public: // New Functions |
|
100 |
/** |
|
101 |
* get ui manager object. |
|
102 |
* |
|
103 |
* @since 2.6 |
|
104 |
* @param aMode |
|
105 |
* @param aCharacterWidth |
|
106 |
* @param aPredictive |
|
107 |
* @return |
|
108 |
*/ |
|
109 |
MAknFepManagerInterface* GetFepUI(TInt aMode, TWidthChar aCharacterWidth, TBool aPredictive); |
|
110 |
||
111 |
/** |
|
112 |
* set language id to ui manager. |
|
113 |
* |
|
114 |
* @since 2.6 |
|
115 |
* @param aMode |
|
116 |
* @param aCharacterWidth |
|
117 |
* @param aPredictive |
|
118 |
* @return |
|
119 |
*/ |
|
120 |
void SetInputLanguageL(TInt aInputLanguage); |
|
121 |
||
122 |
TLanguage InputLanguage() |
|
123 |
{ |
|
124 |
return (TLanguage)iInputLanguage; |
|
125 |
} |
|
126 |
||
127 |
/** |
|
128 |
* Get plugin UI manager object. |
|
129 |
* |
|
130 |
* @since S60 v3.2 |
|
131 |
* |
|
132 |
* @param aPreferedMode The prefered plugin input mode. If prefered mode is not available |
|
133 |
* a substitute choice (according UI sepc) is returned. |
|
134 |
* @param aPenInputLan Current pen input language. |
|
135 |
* @param aDisplayLang Current phone display language |
|
136 |
* @param aPenServer The pen input server object. |
|
137 |
* @return Plugin UI manager. |
|
138 |
*/ |
|
139 |
MAknFepManagerInterface* GetPluginInputFepUiL(TPluginInputMode aPreferedMode, |
|
140 |
TInt aPenInputLang, |
|
141 |
TInt aDisplayLang, |
|
142 |
RPeninputServer* aPenServer); |
|
143 |
||
144 |
/** |
|
145 |
* Test specified plugin UI mode is support or not |
|
146 |
* |
|
147 |
* @since S60 v3.2 |
|
148 |
* |
|
149 |
* @param aMode The plugin input mode to test. |
|
150 |
* @param aPenInputLan Current pen input language. |
|
151 |
* @param aPenServer The pen input server object. |
|
152 |
* @return ETrue if support, EFalse otherwise. |
|
153 |
*/ |
|
154 |
TBool IsPluginInputAvaiable(TPluginInputMode aMode, |
|
155 |
TInt aPenInputLang, |
|
156 |
RPeninputServer* aPenServer); |
|
157 |
||
158 |
/** |
|
159 |
* Set split view flag |
|
160 |
* |
|
161 |
* @since S60 v3.2 |
|
162 |
* |
|
163 |
* @param aIsSplitView |
|
164 |
* @return None |
|
165 |
*/ |
|
166 |
void SetSplitView(TBool aIsSplitView); |
|
167 |
||
168 |
/** |
|
169 |
* Get current IME plugin object. |
|
170 |
* |
|
171 |
* @since S60 v3.2 |
|
172 |
* |
|
173 |
* @return IME Plugin object. |
|
174 |
*/ |
|
175 |
inline CAknFepPenInputImePlugin* CurrentImePlugin(); |
|
176 |
||
177 |
/** |
|
178 |
* Get split view flag |
|
179 |
* |
|
180 |
* |
|
181 |
* @since S60 v3.2 |
|
182 |
* @return ETrue if split view flag is set |
|
183 |
*/ |
|
184 |
inline TBool IsSplitView(); |
|
185 |
||
186 |
private: // New Functions |
|
187 |
/** |
|
188 |
* private c++ constructor. |
|
189 |
* |
|
190 |
* @since 2.6 |
|
191 |
*/ |
|
192 |
CAknFepLanguageManager( MAknFepManagerUIInterface* aFepManager, |
|
193 |
CAknFepCaseManager* aCaseManager, |
|
194 |
CAknFepSharedDataInterface* aSharedData = NULL ); |
|
195 |
||
196 |
/** |
|
197 |
* Second phase construction |
|
198 |
* |
|
199 |
* @since 2.6 |
|
200 |
*/ |
|
201 |
void ConstructL(); |
|
202 |
||
203 |
void ConstructUiManagerL(); |
|
204 |
||
205 |
TInt UiManagerId(); |
|
206 |
||
207 |
||
208 |
||
209 |
/** |
|
210 |
* Activate IME plugin by implemenation. |
|
211 |
* If current IME plugin's impl id is equal to aImeImplId, then current |
|
212 |
* IME plugin object is returned. |
|
213 |
* |
|
214 |
* @since S60 v3.2 |
|
215 |
* |
|
216 |
* @param aImeImplId The IME implementation ID. |
|
217 |
* @param aPenServer The pen input server object. |
|
218 |
* @return IME Plugin imeplementation ID. |
|
219 |
*/ |
|
220 |
CAknFepPenInputImePlugin* ActivateImePlugin(TInt aImeImplId, RPeninputServer* aPenServer); |
|
221 |
||
222 |
/** |
|
223 |
* Activate IME plugin's UI by mode. |
|
224 |
* |
|
225 |
* @since S60 v3.2 |
|
226 |
* |
|
227 |
* @param aImePlugin The IME plugin object. |
|
228 |
* @param aMode The mode of layout UI. |
|
229 |
* @return The Plugin UI interface. |
|
230 |
*/ |
|
231 |
MAknFepManagerInterface* ActivateLayoutUiPluginL(CAknFepPenInputImePlugin* aImePlugin, |
|
232 |
TInt aPenInputLang, |
|
233 |
TPluginInputMode aMode); |
|
234 |
||
235 |
TBool IsPluginInputAvaiableL(TPluginInputMode aMode, |
|
236 |
TInt aPenInputLang, |
|
237 |
RPeninputServer* aPenServer); |
|
238 |
||
239 |
||
240 |
private: // Data |
|
241 |
CArrayPtr<MAknFepManagerInterface>* iUiManArray; |
|
242 |
TInt iInputLanguage; |
|
243 |
MAknFepManagerUIInterface* iFepManager; |
|
244 |
CAknFepCaseManager* iCaseManager; |
|
245 |
CAknFepPluginManager* iPluginManager; |
|
246 |
||
247 |
/** |
|
248 |
* Current IME plugin object. Own. |
|
249 |
* @since S60 v3.2 |
|
250 |
*/ |
|
251 |
CAknFepPenInputImePlugin* iCurImePlugin; |
|
252 |
||
253 |
/** |
|
254 |
* Current layout UI object. Not own. |
|
255 |
* @since S60 v3.2 |
|
256 |
*/ |
|
257 |
MAknFepManagerInterface* iCurUiPlugIn; |
|
258 |
||
259 |
/** |
|
260 |
* Is split view flag |
|
261 |
* @since S60 v3.2 |
|
262 |
*/ |
|
263 |
TBool iIsSplitView; |
|
56
8152b1f1763a
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
264 |
|
44 | 265 |
/** |
266 |
* Shared data manager |
|
267 |
*/ |
|
268 |
CAknFepSharedDataInterface* iSharedData; |
|
269 |
||
270 |
}; |
|
271 |
||
272 |
inline CAknFepPenInputImePlugin* CAknFepLanguageManager::CurrentImePlugin() |
|
273 |
{ |
|
274 |
return iCurImePlugin; |
|
275 |
} |
|
276 |
||
277 |
inline TBool CAknFepLanguageManager::IsSplitView() |
|
278 |
{ |
|
279 |
return iIsSplitView; |
|
280 |
} |
|
281 |
||
282 |
#endif // __AKN_FEP_LANGUAGE_MANAGER__H__ |
|
283 |
// End of file |