|
1 /* |
|
2 * Copyright (c) 2006 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 TAknFepInputStateIndicPhoneticQwerty definition. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 #ifndef __AKN_FEP_UI_INPUT_STATE_INDIC_PHONETIC_QWERTY_H__ |
|
31 #define __AKN_FEP_UI_INPUT_STATE_INDIC_PHONETIC_QWERTY_H__ |
|
32 |
|
33 #include <w32std.h> |
|
34 #include <aknfepuiinputstateqwerty.h> |
|
35 class TAknFepInputStateIndicPhoneticQwerty : public TAknFepInputStateQwerty |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Class Constructor. |
|
40 * |
|
41 * @since S60 4.0 |
|
42 * @param UI Manager. |
|
43 * Engine. |
|
44 * @return Nothing |
|
45 */ |
|
46 |
|
47 TAknFepInputStateIndicPhoneticQwerty(MAknFepUIManagerStateInterface* aOwner); |
|
48 |
|
49 /** |
|
50 * Interface fuction from MAknFepManagerInterface, Used for handling events passes by FEP manager. |
|
51 * |
|
52 * @since S60 4.0 |
|
53 * @param aKey- key code of the event. |
|
54 * @param aLength- Signifies short key press or long key press. |
|
55 * Engine. |
|
56 * @return returns EKeyWasConsumed if the key event is handled else EKeyWasNotConsumed |
|
57 */ |
|
58 |
|
59 TBool HandleKeyL(TInt aKey, TKeyPressLength aLength); |
|
60 |
|
61 /** |
|
62 * Removes Halant added by Phonetic PtiENgine for North Indian Languages. |
|
63 * |
|
64 * @since S60 4.0 |
|
65 * @param aLanguage- Current Phonetic input language is passed to this function. |
|
66 * Engine. |
|
67 * @return Nothing |
|
68 */ |
|
69 |
|
70 void RemoveHalantL(TLanguage aLanguage); |
|
71 |
|
72 /** |
|
73 * Checks wheather the current Phonetic Input Language follows North Indian style of editing. This is necessary for removal |
|
74 * of Halant. |
|
75 * @since S60 4.0 |
|
76 * @param aLanguage- Current Phonetic input language is passed to this function. |
|
77 * Engine. |
|
78 * @return Returns True if the current language comes under North Indian style of writting. |
|
79 */ |
|
80 TBool IsToRemoveHalantForLanguage(TInt aLanguage); |
|
81 |
|
82 private: |
|
83 |
|
84 /** |
|
85 * Checks wheather key code is valid QWERTY key for Phonetic FEP. |
|
86 * |
|
87 * @since S60 4.0 |
|
88 * @param aKey- key code of the event. |
|
89 * Engine. |
|
90 * @return Returns ETrue if the key is valid Phonetic QWERTY Key. |
|
91 */ |
|
92 |
|
93 TBool IsQwertyKey(const TInt aKey); |
|
94 |
|
95 }; |
|
96 |
|
97 #endif __AKN_FEP_UI_INPUT_STATE_INDIC_PHONETIC_QWERTY_H__ |
|
98 |
|
99 // End of file |