|
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 TAknFepInputStateBase methods. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 // INCLUDE FILES |
|
31 #include "AknFepUiInputStateBase.h" |
|
32 #include "AknFepPanic.h" |
|
33 |
|
34 // CONSTANTS |
|
35 |
|
36 /** |
|
37 * TAknFepInputStateBase class. |
|
38 * |
|
39 */ |
|
40 //============================ MEMBER FUNCTIONS ============================== |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // TAknFepInputStateBase::TAknFepInputStateBase |
|
44 // Constructor |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 TAknFepInputStateBase::TAknFepInputStateBase(MAknFepUIManagerStateInterface* aOwner) |
|
48 :iOwner(aOwner), |
|
49 iState(ENull), |
|
50 iData(0) |
|
51 { |
|
52 } |
|
53 |
|
54 /** |
|
55 * MPtiObserver interface. |
|
56 */ |
|
57 //============================ MEMBER FUNCTIONS ============================== |
|
58 |
|
59 // --------------------------------------------------------------------------- |
|
60 // TAknFepInputStateBase::KeyTimerExpired |
|
61 // |
|
62 // --------------------------------------------------------------------------- |
|
63 // |
|
64 void TAknFepInputStateBase::KeyTimerExpired() |
|
65 { |
|
66 } |
|
67 |
|
68 // --------------------------------------------------------------------------- |
|
69 // TAknFepInputStateBase::LastWordInSelectionList |
|
70 // |
|
71 // --------------------------------------------------------------------------- |
|
72 // |
|
73 void TAknFepInputStateBase::LastWordInSelectionList() |
|
74 { |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------------------------- |
|
78 // TAknFepInputStateBase::FirstWordInSelectionList |
|
79 // |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 void TAknFepInputStateBase::FirstWordInSelectionList() |
|
83 { |
|
84 } |
|
85 |
|
86 /** |
|
87 * TAknFepInputStateBase class. |
|
88 * |
|
89 */ |
|
90 //============================ MEMBER FUNCTIONS ============================== |
|
91 |
|
92 // --------------------------------------------------------------------------- |
|
93 // TAknFepInputStateBase::HandleKeyL |
|
94 // Handling Keypress events |
|
95 // --------------------------------------------------------------------------- |
|
96 // |
|
97 TBool TAknFepInputStateBase::HandleKeyL(TInt /*aKey*/, TKeyPressLength /*aLength*/) |
|
98 { |
|
99 return EFalse; |
|
100 } |
|
101 |
|
102 // --------------------------------------------------------------------------- |
|
103 // TAknFepInputStateBase::HandleCommandL |
|
104 // Handling Command |
|
105 // --------------------------------------------------------------------------- |
|
106 // |
|
107 void TAknFepInputStateBase::HandleCommandL(TInt /*aCommandId*/) |
|
108 { |
|
109 } |
|
110 void TAknFepInputStateBase::HandleCommandL(TInt aCommandId, TInt /*aParam*/) |
|
111 { |
|
112 HandleCommandL(aCommandId); |
|
113 } |
|
114 |
|
115 // --------------------------------------------------------------------------- |
|
116 // TAknFepInputStateBase::State |
|
117 // |
|
118 // --------------------------------------------------------------------------- |
|
119 // |
|
120 TUIState TAknFepInputStateBase::State() const |
|
121 { |
|
122 return iState; |
|
123 } |
|
124 |
|
125 // --------------------------------------------------------------------------- |
|
126 // TAknFepUiInputStateJapaneseBase::CloseUI |
|
127 // |
|
128 // --------------------------------------------------------------------------- |
|
129 // |
|
130 void TAknFepInputStateBase::CloseUI() |
|
131 { |
|
132 } |
|
133 |
|
134 // --------------------------------------------------------------------------- |
|
135 // TAknFepUiInputStateJapaneseBase::InitializeStateL |
|
136 // |
|
137 // --------------------------------------------------------------------------- |
|
138 // |
|
139 void TAknFepInputStateBase::InitializeStateL() |
|
140 { |
|
141 } |
|
142 |
|
143 // --------------------------------------------------------------------------- |
|
144 // TAknFepInputStateBase::operator= |
|
145 // |
|
146 // --------------------------------------------------------------------------- |
|
147 // |
|
148 void TAknFepInputStateBase::operator=(const TAknFepInputStateBase& aState) |
|
149 { |
|
150 Mem::Copy(this, &aState, sizeof(TAknFepInputStateBase)); |
|
151 } |
|
152 |
|
153 // --------------------------------------------------------------------------- |
|
154 // TAknFepInputStateBase::SetStarKeyFlag |
|
155 // |
|
156 // --------------------------------------------------------------------------- |
|
157 // |
|
158 void TAknFepInputStateBase::SetStarKeyFlag( TBool aSet ) |
|
159 { |
|
160 iIsStarKeyPressed = aSet; |
|
161 } |
|
162 #ifdef RD_HINDI_PHONETIC_INPUT |
|
163 // --------------------------------------------------------------------------- |
|
164 // TAknFepInputStateInitialIndicPhoneticMultitap::GetPhoneticLatinChar |
|
165 // |
|
166 // --------------------------------------------------------------------------- |
|
167 // |
|
168 void TAknFepInputStateBase::GetPhoneticLatinChar(TChar& aChar)const |
|
169 { |
|
170 } |
|
171 #endif |
|
172 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
173 // --------------------------------------------------------------------------- |
|
174 // TAknFepInputStateBase::GetShortKeyPressTxtLength |
|
175 // |
|
176 // --------------------------------------------------------------------------- |
|
177 // |
|
178 TInt TAknFepInputStateBase::GetShortKeyPressTxtLength() |
|
179 { |
|
180 return iShortKeyPressText.Length(); |
|
181 } |
|
182 |
|
183 // --------------------------------------------------------------------------- |
|
184 // TAknFepInputStateBase::SetShortKeyPressText |
|
185 // |
|
186 // --------------------------------------------------------------------------- |
|
187 // |
|
188 void TAknFepInputStateBase::SetShortKeyPressText(const TDesC& aText) |
|
189 { |
|
190 iShortKeyPressText.Zero(); |
|
191 iShortKeyPressText.Copy(aText); |
|
192 } |
|
193 #endif // RD_INTELLIGENT_TEXT_INPUT |
|
194 |
|
195 // End of file |