|
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 TAknFepUiInputStatePredictiveInputJapanese definition. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 #ifndef __AKN_FEP_UI_INPUT_STATE_PREDICTIVE_INPUT_JAPANESE_H__ |
|
31 #define __AKN_FEP_UI_INPUT_STATE_PREDICTIVE_INPUT_JAPANESE_H__ |
|
32 |
|
33 // INCLUDES |
|
34 #include <e32std.h> |
|
35 |
|
36 #include "AknFepUiInputStateJapanesePredictiveBase.h" |
|
37 |
|
38 // CONSTANTS |
|
39 |
|
40 // MACROS |
|
41 |
|
42 // DATA TYPES |
|
43 |
|
44 // FUNCTION PROTOTYPES |
|
45 |
|
46 // FORWARD DECLARATIONS |
|
47 |
|
48 // CLASS DECLARATION |
|
49 class MAknFepUIManagerStateInterface; |
|
50 enum TKeyPressLength; |
|
51 |
|
52 /** |
|
53 * TAknFepUiInputStatePredictiveInputJapanese class. |
|
54 * |
|
55 * @lib AknFep.lib |
|
56 * @since 2.6 |
|
57 */ |
|
58 class TAknFepUiInputStatePredictiveInputJapanese |
|
59 :public TAknFepUiInputStateJapanesePredictiveBase |
|
60 { |
|
61 public: // Constructors and destructor |
|
62 /** |
|
63 * C++ default Constructor |
|
64 * |
|
65 * @since 2.6 |
|
66 * @param aOwner Object derived MAknFepUIManagerStateInterface |
|
67 * @param aUIContainer MAknFepUICtrlContainerJapanese object |
|
68 */ |
|
69 TAknFepUiInputStatePredictiveInputJapanese( |
|
70 MAknFepUIManagerStateInterface* aOwner, |
|
71 MAknFepUICtrlContainerJapanese* aUIContainer); |
|
72 |
|
73 public: // Functions from base classes |
|
74 /** |
|
75 * From TAknFepUiInputStateJapanesePredictiveBase |
|
76 * Call this function when Multitap timer of PtiEngine was time-out |
|
77 * |
|
78 * @since 2.6 |
|
79 */ |
|
80 void KeyTimerExpired(); |
|
81 |
|
82 /** |
|
83 * From TAknFepUiInputStateJapanesePredictiveBase |
|
84 * Initialize state |
|
85 * |
|
86 * @since 2.6 |
|
87 */ |
|
88 void InitializeStateL(); |
|
89 |
|
90 /** |
|
91 * From TAknFepUiInputStateJapanesePredictiveBase |
|
92 * Handling Command events. This Method is called by CAknFepUIManagerJapanese. |
|
93 * |
|
94 * @since 2.6 |
|
95 * @param aCommandId Command ID value |
|
96 */ |
|
97 void HandleCommandL(TInt aCommandId); |
|
98 |
|
99 /** |
|
100 * From TAknFepUiInputStateEntryJapaneseMultitap |
|
101 * Close UI (Predictive popup) |
|
102 * @since 2.6 |
|
103 */ |
|
104 void CloseUI(); |
|
105 |
|
106 protected: // Functions from base classes |
|
107 /** |
|
108 * From TAknFepUiInputStateJapanesePredictiveBase |
|
109 * Handling short keypress events of the numeric and the star. |
|
110 * HandleKeyEventL() call this method. |
|
111 * |
|
112 * @since 2.6 |
|
113 * @param aKey The event key code |
|
114 * @return ETrue If aKey was handled |
|
115 */ |
|
116 TBool HandleNumericShortKeyL(TInt aKey); |
|
117 |
|
118 /** |
|
119 * From TAknFepUiInputStateJapanesePredictiveBase |
|
120 * Handling auxiliary keypress events including OK and Backspace. |
|
121 * HandleKeyEventL() call this method. |
|
122 * |
|
123 * @since 2.6 |
|
124 * @param aKey The event key code |
|
125 * @param aLength The Length of keypress |
|
126 * @return ETrue If aKey was handled |
|
127 */ |
|
128 TBool HandleAuxKeyL(TInt aKey, TKeyPressLength aLength); |
|
129 |
|
130 /** |
|
131 * From TAknFepUiInputStateEntryJapaneseMultitap |
|
132 * Handling navigate keypress events. HandleKeyEventL() call this method. |
|
133 * |
|
134 * @since 3.2 |
|
135 * @param aKey The event key code |
|
136 * @param aLength The Length of keypress |
|
137 * @return ETrue If aKey was handled |
|
138 */ |
|
139 TBool HandleNaviKeyL(TInt aKey, TKeyPressLength aLength); |
|
140 |
|
141 private: // New function |
|
142 |
|
143 /** |
|
144 * TAknFepUiInputStatePredictiveInputJapanese::IsFullWidthAlphaChar |
|
145 * Check full-width alphabet character |
|
146 */ |
|
147 TBool IsFullWidthAlphaChar(TPtrC aPtr); |
|
148 |
|
149 /** |
|
150 * TAknFepUiInputStatePredictiveInputJapanese::ChangeStateToConversionL() |
|
151 * Change state to conversion |
|
152 */ |
|
153 void ChangeStateToConversionL(); |
|
154 |
|
155 /** |
|
156 * TAknFepUiInputStatePredictiveInputJapanese::ChangeStateToEntryL() |
|
157 * Change state to Entry |
|
158 */ |
|
159 void ChangeStateToEntryL(); |
|
160 }; |
|
161 #endif //__AKN_FEP_UI_INPUT_STATE_PREDICTIVE_INPUT_JAPANESE_H__ |
|
162 // End of file |