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: Provides the TAknFepInputStateInitialIndicPhoneticMultitap definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 #ifndef __AKN_FEP_UI_INPUT_STATE_INIT_INDIC_PHONETIC_MULTITAP_H__ |
|
29 #define __AKN_FEP_UI_INPUT_STATE_INIT_INDIC_PHONETIC_MULTITAP_H__ |
|
30 |
|
31 #include "AknFepUIInputStateInitialMultitapBase.h" |
|
32 /** |
|
33 * This class handles the multitap input for Indic languages. |
|
34 * @lib avkonfep.dll |
|
35 * @since Series 60 3.1 |
|
36 */ |
|
37 class TAknFepInputStateInitialIndicPhoneticMultitap : public TAknFepInputStateInitialMultitapBase |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * |
|
42 * Constructor for TAknFepInputStateInitialIndicPhoneticMultitap. |
|
43 * @since 5.0 |
|
44 * @return |
|
45 */ |
|
46 TAknFepInputStateInitialIndicPhoneticMultitap(MAknFepUIManagerStateInterface* aOwner, |
|
47 TInt aLanguage); |
|
48 public: //from TAknFepInputStateBase |
|
49 /** |
|
50 * |
|
51 * Returns the virama character depending on the input language. |
|
52 * @since 5.0 |
|
53 * @return Etrue if the Key is handled. |
|
54 */ |
|
55 |
|
56 TBool HandleKeyL(TInt aKey, TKeyPressLength aLength); |
|
57 #ifdef RD_HINDI_PHONETIC_INPUT |
|
58 /** |
|
59 * |
|
60 * Populates iPhoneticLatinChar to aChar. |
|
61 * @since 5.0 |
|
62 * @return None. |
|
63 */ |
|
64 virtual void GetPhoneticLatinChar(TChar& aChar)const; |
|
65 #endif |
|
66 |
|
67 public: //from MptiObserver |
|
68 /** |
|
69 * |
|
70 * Gets called when PTI Engine's timer expires. |
|
71 * @since 5.0 |
|
72 * @return |
|
73 */ |
|
74 void KeyTimerExpired(); |
|
75 /** |
|
76 * Transliterate the current inputted character to language specific character |
|
77 * of Halant. |
|
78 * @since 5.0 |
|
79 * @param Null |
|
80 * @return Null |
|
81 */ |
|
82 private: |
|
83 void TransliterateFromLatinL(); |
|
84 /** |
|
85 * Removes Halant added by Phonetic PtiENgine for North Indian Languages. |
|
86 * |
|
87 * @since 5.0 |
|
88 * @param aLanguage- Current Phonetic input language is passed to this function. |
|
89 * Engine. |
|
90 * @return Nothing |
|
91 */ |
|
92 void RemoveHalantL(TLanguage aLanguage); |
|
93 |
|
94 /** |
|
95 * Checks wheather the current Phonetic Input Language follows North Indian style of editing. This is necessary for removal |
|
96 * of Halant. |
|
97 * @since 5.0 |
|
98 * @param aLanguage- Current Phonetic input language is passed to this function. |
|
99 * Engine. |
|
100 * @return Returns True if the current language comes under North Indian style of writting. |
|
101 */ |
|
102 TBool IsToRemoveHalantForLanguage(TInt aLanguage); |
|
103 /** |
|
104 * Checks if the character has phonetic equivallent to be Transliterated |
|
105 * of Halant. |
|
106 * @since 5.0 |
|
107 * @param aChar character to be checked |
|
108 * @return returns ETrue if the character can be transliterated |
|
109 */ |
|
110 inline TBool IsToTransliterate(TChar& aChar); |
|
111 /** |
|
112 * Checks if the current transliterated character can be inputted as per the language rule, if not then Question mark is inputted |
|
113 * of Halant. |
|
114 * @since 5.0 |
|
115 * @param aChar character to be validated for inputting |
|
116 * @return ETrue if the character is allowed |
|
117 */ |
|
118 TBool ValidatePhoneticInputL(const TDes& aBuf, TLanguage aLanguage); |
|
119 /** |
|
120 * Checks if the current inputted character is a fallback rendered character |
|
121 * of Halant. |
|
122 * @since 5.0 |
|
123 * @param aChar Character to be checked |
|
124 * @return ETrue is the character is a fallback rendered character |
|
125 */ |
|
126 TBool IsInvalidPhoneticCharacter( TUint aChar, TLanguage aLanguage ); |
|
127 /** |
|
128 * Handels the key timer expiry |
|
129 * of Halant. |
|
130 * @since 5.0 |
|
131 * @param Null |
|
132 * @return Null |
|
133 */ |
|
134 void HandleKeyTimerExpiryL(); |
|
135 }; |
|
136 |
|
137 |
|
138 #endif //__AKN_FEP_UI_INPUT_STATE_INIT_INDIC_MULTITAP_H__ |
|
139 |
|
140 // End of File |
|