|
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_CHNSPLITITUTUISTATEPINYINCOMPOSITION_H |
|
18 #define C_CHNSPLITITUTUISTATEPINYINCOMPOSITION_H |
|
19 |
|
20 #include "peninputsplititutuistatebase.h" |
|
21 |
|
22 /** |
|
23 * class CChnSplitItutUiStatePinyinComposition. |
|
24 * |
|
25 * chinese split itu-t predict state |
|
26 * |
|
27 * @lib peninputsplititut.lib |
|
28 * @since S60 v5.0 |
|
29 */ |
|
30 class CChnSplitItutUiStatePinyinComposition : public CSplitItutUiStateBase |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Symbian constructor. |
|
35 * |
|
36 * @since S60 5.0 |
|
37 * |
|
38 * @param aOwner |
|
39 * @return Pointer to created CChnSplitItutUiStatePinyinComposition object |
|
40 */ |
|
41 static CChnSplitItutUiStatePinyinComposition* NewL(CSplitItutUiMgrBase* aOwner); |
|
42 |
|
43 /** |
|
44 * standard c++ destructor. |
|
45 * |
|
46 * @since S60 5.0 |
|
47 * @return none |
|
48 */ |
|
49 ~CChnSplitItutUiStatePinyinComposition(); |
|
50 |
|
51 /** |
|
52 * From CSplitItutUiStateBase |
|
53 * exit current state |
|
54 * |
|
55 * @since S60 5.0 |
|
56 * @return none |
|
57 */ |
|
58 void OnExit(); |
|
59 |
|
60 /** |
|
61 * From CSplitItutUiStateBase |
|
62 * exit current state |
|
63 * |
|
64 * @since S60 5.0 |
|
65 * @return none |
|
66 */ |
|
67 void OnEntryL(); |
|
68 |
|
69 /** |
|
70 * From CSplitItutUiStateBase |
|
71 * handle control event |
|
72 * |
|
73 * @since S60 5.0 |
|
74 * @param aEventType |
|
75 * @param aCtrl |
|
76 * @param aEventData |
|
77 * @return none |
|
78 */ |
|
79 TBool HandleCtrlEventL(TInt aEventType, CFepUiBaseCtrl* aCtrl, const TDesC& aEventData); |
|
80 |
|
81 /** |
|
82 * From CSplitItutUiStateBase |
|
83 * exit current state |
|
84 * |
|
85 * @since S60 5.0 |
|
86 * @return |
|
87 */ |
|
88 CSplitItutUiMgrBase::TUiState StateType(); |
|
89 |
|
90 /** |
|
91 * From CSplitItutUiStateBase |
|
92 * handle key event |
|
93 * |
|
94 * @since S60 5.0 |
|
95 * @param aCmd |
|
96 * @param aKey |
|
97 * @return none |
|
98 */ |
|
99 TBool HandleKeyL(TInt aCmd, TInt aKey); |
|
100 |
|
101 protected: |
|
102 /** |
|
103 * C++ constructor |
|
104 * |
|
105 * @since S60 5.0 |
|
106 * @param aOwner |
|
107 * @return none |
|
108 */ |
|
109 CChnSplitItutUiStatePinyinComposition(CSplitItutUiMgrBase* aOwner); |
|
110 |
|
111 private: |
|
112 /** |
|
113 * spell candidate array |
|
114 */ |
|
115 RPointerArray<HBufC> iSpellCands; |
|
116 }; |
|
117 |
|
118 #endif //C_CHNSPLITITUTUISTATEPINYINCOMPOSITION_H |