|
1 /* |
|
2 * Copyright (c) 2008 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 TAknFepInputStateEntryZhuyinPhraseCreation methods. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 #ifndef T_AKNFEPINPUTSTATEENTRYZHUYINPHRASECREATION_H |
|
31 #define T_AKNFEPINPUTSTATEENTRYZHUYINPHRASECREATION_H |
|
32 |
|
33 |
|
34 //#include "AknFepUIInputStateChineseBase.h" |
|
35 #include "aknfepuiinputstatezhuyinphrasecreationbase.h" |
|
36 |
|
37 class TAknFepInputStateEntryZhuyinPhraseCreation : public TAknFepInputStateZhuyinPhraseCreationBase |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * C++ constructor. |
|
42 * |
|
43 * @since S60 v5.0. |
|
44 * @param fepuimanagerstate interface |
|
45 * @param uicontainer |
|
46 * @return self object. |
|
47 */ |
|
48 TAknFepInputStateEntryZhuyinPhraseCreation( |
|
49 MAknFepUIManagerStateInterface* aOwner, |
|
50 MAknFepUICtrlContainerChinese* aUIContainer); |
|
51 |
|
52 /** |
|
53 * Handle Key function. |
|
54 * |
|
55 * @since S60 v5.0. |
|
56 * |
|
57 * @param the user input key. |
|
58 * @param TKeyPressLength the key length. |
|
59 * @return ETrue if handle key is dealed with, EFalse others. |
|
60 */ |
|
61 TBool HandleKeyL(TInt aKey, TKeyPressLength aLength); |
|
62 |
|
63 /** |
|
64 * Initialize State. |
|
65 * |
|
66 * @since S60 v5.0. |
|
67 * @return None. |
|
68 */ |
|
69 void InitializeState(); |
|
70 |
|
71 private: |
|
72 |
|
73 /** |
|
74 * Set the show info high light. |
|
75 * |
|
76 * @since S60 v5.0. |
|
77 * @return none. |
|
78 */ |
|
79 void SetHighLight(); |
|
80 |
|
81 /** |
|
82 * Set the show info high light. |
|
83 * |
|
84 * @since S60 v5.0. |
|
85 * @return none. |
|
86 */ |
|
87 void SetHighLightMoreThanMax(); |
|
88 |
|
89 /** |
|
90 * move the index of the keystroke left. |
|
91 * |
|
92 * @since S60 v5.0. |
|
93 * @return ETrue if move ok. |
|
94 */ |
|
95 TBool MoveIndexOfKeystrokeLeft(); |
|
96 |
|
97 /** |
|
98 * move the index of the keystroke right. |
|
99 * |
|
100 * @since S60 v5.0. |
|
101 * @return ETrue if move ok. |
|
102 */ |
|
103 TBool MoveIndexOfKeystrokeRight(); |
|
104 |
|
105 /** |
|
106 * Add phrase to DB. |
|
107 * |
|
108 * @since S60 v5.0. |
|
109 * @param aPhraseAdd the phrase to be added to DB |
|
110 * @return ETrue if the phrase is added to DB successfully, otherwise EFalse. |
|
111 */ |
|
112 TBool AddPhraseToDB( const TDesC& aPhraseAdd ); |
|
113 |
|
114 /** |
|
115 * Check auto change state. |
|
116 * |
|
117 * @since S60 v5.0. |
|
118 * @return ETrue if need to auto change state,EFalse others. |
|
119 */ |
|
120 TBool AutoChangeState(); |
|
121 |
|
122 /** |
|
123 * Check high light. |
|
124 * |
|
125 * @since S60 v5.0. |
|
126 * @return ETrue if the hight light,EFalse others. |
|
127 */ |
|
128 TBool CheckHighLightL(); |
|
129 |
|
130 }; |
|
131 |
|
132 #endif //T_AKNFEPINPUTSTATEENTRYZHUYINPHRASECREATION_H |
|
133 |
|
134 // End of file |