36 #include "AknFepUiManagerBase.h" // CAknFepUIManagerBase |
36 #include "AknFepUiManagerBase.h" // CAknFepUIManagerBase |
37 #include "AknFepUIManagerJapanese.h" // CAknFepUIManagerJapanese |
37 #include "AknFepUIManagerJapanese.h" // CAknFepUIManagerJapanese |
38 #include "AknFepUiManagerWestern.h" // CAknFepUIManagerWestern |
38 #include "AknFepUiManagerWestern.h" // CAknFepUIManagerWestern |
39 #include "AknFepUiManagerChinese.h" // CAknFepUIManagerChinese |
39 #include "AknFepUiManagerChinese.h" // CAknFepUIManagerChinese |
40 #include "AknFepLanguageManager.h" // this class |
40 #include "AknFepLanguageManager.h" // this class |
|
41 #include "AknFepSharedDataInterface.h" // CAknFepSharedDataInterface |
41 |
42 |
42 #include "AknFepUiManagerKorean.h" // CAknFepUIManagerKorean |
43 #include "AknFepUiManagerKorean.h" // CAknFepUIManagerKorean |
43 #include <uikon.hrh> // TAknEditorNumericKeymap |
44 #include <uikon.hrh> // TAknEditorNumericKeymap |
44 #include <AknUtils.h> |
45 #include <AknUtils.h> |
45 |
46 |
46 #include <aknfeppeninputimeplugin.h> |
47 #include <aknfeppeninputimeplugin.h> |
47 #include "AknFepPluginManager.h" |
48 #include "AknFepPluginManager.h" |
48 #include <peninputcmd.h> |
49 #include <peninputcmd.h> |
49 #include <peninputclient.h> |
50 #include <peninputclient.h> |
|
51 #include <featmgr.h> |
50 |
52 |
51 void Cleanup( TAny* aAny ) |
53 void Cleanup( TAny* aAny ) |
52 { |
54 { |
53 RImplInfoPtrArray* implArray = |
55 RImplInfoPtrArray* implArray = |
54 reinterpret_cast< RImplInfoPtrArray*> ( aAny ); |
56 reinterpret_cast< RImplInfoPtrArray*> ( aAny ); |
65 // ----------------------------------------------------------------------------- |
67 // ----------------------------------------------------------------------------- |
66 // CAknFepLanguageManager() |
68 // CAknFepLanguageManager() |
67 // first phase construction. |
69 // first phase construction. |
68 // ----------------------------------------------------------------------------- |
70 // ----------------------------------------------------------------------------- |
69 // |
71 // |
70 CAknFepLanguageManager* CAknFepLanguageManager::NewL(MAknFepManagerUIInterface* aFepMan, |
72 CAknFepLanguageManager* CAknFepLanguageManager::NewL( MAknFepManagerUIInterface* aFepMan, |
71 CAknFepCaseManager* aCaseMan) |
73 CAknFepCaseManager* aCaseMan, |
72 { |
74 CAknFepSharedDataInterface* aSharedData ) |
73 CAknFepLanguageManager* self = new(ELeave) CAknFepLanguageManager(aFepMan, aCaseMan); |
75 { |
|
76 CAknFepLanguageManager* self = new(ELeave) CAknFepLanguageManager(aFepMan, aCaseMan, aSharedData); |
74 CleanupStack::PushL(self); |
77 CleanupStack::PushL(self); |
75 self->ConstructL(); |
78 self->ConstructL(); |
76 CleanupStack::Pop(); // self |
79 CleanupStack::Pop(); // self |
77 return self; |
80 return self; |
78 } |
81 } |
197 // CAknFepLanguageManager() |
200 // CAknFepLanguageManager() |
198 // Constructor. |
201 // Constructor. |
199 // ----------------------------------------------------------------------------- |
202 // ----------------------------------------------------------------------------- |
200 // |
203 // |
201 CAknFepLanguageManager::CAknFepLanguageManager(MAknFepManagerUIInterface* aFepManager, |
204 CAknFepLanguageManager::CAknFepLanguageManager(MAknFepManagerUIInterface* aFepManager, |
202 CAknFepCaseManager* aCaseManager) |
205 CAknFepCaseManager* aCaseManager, |
|
206 CAknFepSharedDataInterface* aSharedData ) |
203 |
207 |
204 :iInputLanguage(ELangEnglish), |
208 :iInputLanguage(ELangEnglish), |
205 iFepManager(aFepManager), |
209 iFepManager(aFepManager), |
206 iCaseManager(aCaseManager), |
210 iCaseManager(aCaseManager), |
207 iPluginManager(NULL) |
211 iPluginManager(NULL), |
|
212 iSharedData(aSharedData) |
208 { |
213 { |
209 } |
214 } |
210 |
215 |
211 // ----------------------------------------------------------------------------- |
216 // ----------------------------------------------------------------------------- |
212 // CAknFepLanguageManager::ConstructL() |
217 // CAknFepLanguageManager::ConstructL() |
308 { |
313 { |
309 secondMode = EPluginInputModeFSQ; |
314 secondMode = EPluginInputModeFSQ; |
310 } |
315 } |
311 else // Portrait |
316 else // Portrait |
312 { |
317 { |
313 secondMode = EPluginInputModeItut; |
318 secondMode = ( iSharedData ) |
|
319 ? iSharedData->PluginPortraitInputMode() : EPluginInputModeItut; |
314 } |
320 } |
315 TPluginInputMode curMode = aPreferedMode; |
321 TPluginInputMode curMode = aPreferedMode; |
316 TInt language = aPenInputLang; |
322 TInt language = aPenInputLang; |
317 |
323 |
318 //pen input language and prefered mode |
324 //pen input language and prefered mode |