|
1 /* |
|
2 * Copyright (c) 2002-2005 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: header file of Pinyin phrase predictive Qwerty state |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 #ifndef T_AKNFEPUIINPUTSTATEPREDICTIVEINPUTQWERTYPINYIN_PHRASE_H |
|
30 #define T_AKNFEPUIINPUTSTATEPREDICTIVEINPUTQWERTYPINYIN_PHRASE_H |
|
31 |
|
32 // User includes |
|
33 #include "AknFepUiInputStatePredictiveInputQwertyChinesePhrase.h" |
|
34 |
|
35 /** |
|
36 * TAknFepInputStatePredictiveInputQwertyPinyinPhrase class. |
|
37 * |
|
38 * Implementation of Pinyin phrase predictive Qwerty state |
|
39 * |
|
40 * @lib avkonfep.dll |
|
41 * @since S60 v3.2 |
|
42 */ |
|
43 class TAknFepInputStatePredictiveInputQwertyPinyinPhrase : |
|
44 public TAknFepInputStatePredictiveInputQwertyChinesePhrase |
|
45 { |
|
46 public: |
|
47 |
|
48 /** |
|
49 * C++ default constructor |
|
50 * |
|
51 * @since S60 V3.2 |
|
52 * @param aOwner Pointer to UI manager state interface |
|
53 * @param aUIContainer Pointer to Chinese UI container |
|
54 */ |
|
55 |
|
56 TAknFepInputStatePredictiveInputQwertyPinyinPhrase( |
|
57 MAknFepUIManagerStateInterface* aOwner, |
|
58 MAknFepUICtrlContainerChinese* aUIContainer); |
|
59 |
|
60 /** |
|
61 * Handling Command events. |
|
62 * This Method is called by CAknFepUIManagerJapanese. |
|
63 * |
|
64 * @param aCommandId Command ID value |
|
65 */ |
|
66 void HandleCommandL( TInt aCommandId ); |
|
67 protected: |
|
68 |
|
69 /** |
|
70 * From TAknFepInputStatePredictiveInputQwertyPhrase |
|
71 * Handle system key press event |
|
72 * |
|
73 * @since S60 v3.2 |
|
74 * @param aKey System key |
|
75 * @param aLength Key press length |
|
76 * @return ETrue if handle, otherwise this class do not handle this key |
|
77 */ |
|
78 |
|
79 TBool HandleKeyL(TInt aKey, TKeyPressLength aLength); |
|
80 |
|
81 private: |
|
82 |
|
83 /** |
|
84 * Judge the kay is in the valid pinyin key group |
|
85 * |
|
86 * @since S60 v3.2 |
|
87 * @param aKey System key |
|
88 * @return ETrue if it is pinyin key, otherwise it is not |
|
89 */ |
|
90 TBool IsValidPinyinKey(TInt aKey); |
|
91 |
|
92 /** |
|
93 * Judge the kay is in the valid entry key group |
|
94 * |
|
95 * @since S60 v3.2 |
|
96 * @param aKey System key |
|
97 * @return ETrue if it is pinyin key, otherwise it is not |
|
98 */ |
|
99 TBool IsValidEntryKey(TInt aKey); |
|
100 }; |
|
101 |
|
102 #endif T_AKNFEPUIINPUTSTATEPREDICTIVEINPUTQWERTYPINYIN_PHRASE_H |
|
103 |
|
104 // End of file |