|
1 /* |
|
2 * Copyright (c) 2009 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 * |
|
16 */ |
|
17 #ifndef C_CHNITUTUIMGR_H |
|
18 #define C_CHNITUTUIMGR_H |
|
19 |
|
20 #include "peninputgenericitutuimgrbase.h" |
|
21 |
|
22 |
|
23 class CChnItutUiMgr : public CGenericItutUiMgrBase |
|
24 { |
|
25 public: |
|
26 static CChnItutUiMgr* NewL(MItutLayoutContext* aContext, |
|
27 CGenericItutDataMgr* aDataMgr, |
|
28 CGenericItutWindowManager* aUiManager); |
|
29 |
|
30 ~CChnItutUiMgr(); |
|
31 |
|
32 // called by ui layout |
|
33 TInt HandleCommandL(TInt aCmd, TUint8* aData); |
|
34 |
|
35 // handle control event |
|
36 TBool HandleCtrlEventL(TInt aEventType, CFepUiBaseCtrl* aCtrl, const TDesC& aEventData); |
|
37 |
|
38 void SetCurrentStateL(TUiState aNewStateType); |
|
39 |
|
40 void ActivateUiL(); |
|
41 |
|
42 void HandleLongPressNumberKeyL(TPtiKey aKey); |
|
43 |
|
44 void DeactivateUI(); |
|
45 |
|
46 protected: |
|
47 CChnItutUiMgr(MItutLayoutContext* aContext, |
|
48 CGenericItutDataMgr* aDataMgr, |
|
49 CGenericItutWindowManager* aUiManager); |
|
50 |
|
51 void ConstructL(); |
|
52 |
|
53 private: |
|
54 |
|
55 TBool IsChineseMode(); |
|
56 |
|
57 private: |
|
58 CGenericItutUiStateBase* iStandbyState; |
|
59 CGenericItutUiStateBase* iPinyinComp; |
|
60 CGenericItutUiStateBase* iStoZhuComp; |
|
61 CGenericItutUiStateBase* iPredictState; |
|
62 |
|
63 CGenericItutUiStateBase* iNormalState; |
|
64 CGenericItutUiStateBase* iMatchSelState; |
|
65 CGenericItutUiStateBase* iSpellState; |
|
66 }; |
|
67 |
|
68 #endif // C_CHNITUTUIMGR_H |