author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 15 Sep 2010 12:34:44 +0300 | |
branch | RCL_3 |
changeset 50 | 5a1685599b76 |
parent 44 | ecbabf52600f |
child 56 | 8152b1f1763a |
permissions | -rw-r--r-- |
44 | 1 |
/* |
2 |
* Copyright (c) 2003 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 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
||
22 |
||
23 |
||
24 |
||
25 |
||
26 |
||
27 |
||
28 |
||
29 |
#ifndef __AKN_FEP_PLUGIN_MANAGER__ |
|
30 |
#define __AKN_FEP_PLUGIN_MANAGER__ |
|
31 |
||
32 |
// INCLUDES |
|
33 |
#include <gulicon.h> |
|
34 |
#include <barsread.h> |
|
35 |
#include <aknfeppensupportinterface.h> |
|
36 |
#include <peninputclient.h> |
|
37 |
#include <aknextendedinputcapabilities.h> |
|
38 |
#include <eikedwob.h> // for MEikEdwinObserver |
|
39 |
||
40 |
#include "AknFepGlobalEnums.h" |
|
41 |
#include <aknfeppeninputenums.h> |
|
42 |
#include "AknFepPluginMenuManager.h" |
|
43 |
#include "AknFepSharedDataInterface.h" |
|
44 |
#include "AknFepManager.h" |
|
45 |
#include "AknFepCaseManager.h" |
|
46 |
#include <peninputsrveventhandler.h> |
|
47 |
||
48 |
// FORWARD DECLARATIONS |
|
49 |
//class MPeninputServerEventHandler; |
|
50 |
class MAknFepManagerInterface; |
|
51 |
class CAknFepUiSpellContainer; |
|
52 |
class CPenInputGSInterface; |
|
53 |
class CConnectAo; |
|
54 |
||
55 |
// CLASS DECLARATION |
|
56 |
||
57 |
||
58 |
/** |
|
59 |
* Plugin command type |
|
60 |
*/ |
|
61 |
enum TPluginCmd |
|
62 |
{ |
|
63 |
EPluginCloseMode, |
|
64 |
EPluginSyncFepAwareText, |
|
65 |
EPluginSetDataQueryShown, |
|
66 |
EPluginActivate, |
|
67 |
EPluginMenuCmd, |
|
68 |
EPluginFocusChanged, |
|
69 |
EPluginResourceChanged, |
|
70 |
EPluginFaseSwap, |
|
71 |
EPluginKeyEvent, |
|
72 |
EPluginUpdateIndicator, |
|
73 |
EPluginActivateInGlobalNote, |
|
74 |
EGainForeground, |
|
75 |
ELostForeground, |
|
76 |
EPluginEditorActivate, |
|
77 |
EPluginForegroundChanged, |
|
78 |
EPluginFocusItemDestroy, |
|
79 |
EPluginLanguageChanged, |
|
80 |
EPluginPreview, |
|
81 |
EPluginPromptChanged, |
|
82 |
EPluginShowCandidate, |
|
83 |
EPluginShowTooltip, |
|
84 |
EPluginHideTooltip, |
|
85 |
EPluginSwitchToPortrait, |
|
86 |
EPluginSwitchToLandscape, |
|
87 |
EPluginSwitchMode, |
|
88 |
EPluginUpdatePenInputITIStatus, |
|
89 |
EPluginEnableFetchDimState, |
|
90 |
EPluginArabicNumModeChanged, |
|
91 |
EPluginEnablePriorityChangeOnOriChange |
|
92 |
}; |
|
93 |
||
94 |
/** |
|
95 |
* Plugin synchronization type |
|
96 |
*/ |
|
97 |
enum TPluginSync |
|
98 |
{ |
|
99 |
EPluginSyncCurSel, |
|
100 |
EPluginSyncUpdatedText, |
|
101 |
EPluginSyncAll |
|
102 |
}; |
|
103 |
||
104 |
#ifdef RD_SCALABLE_UI_V2 |
|
105 |
||
106 |
/** |
|
107 |
* CAknFepPluginManager class. |
|
108 |
* |
|
109 |
* @lib AknFep.lib |
|
110 |
* @since 2.8 |
|
111 |
*/ |
|
112 |
class CAknFepPluginManager : |
|
113 |
public CBase, |
|
114 |
public MAknFepPenSupportInterface, |
|
115 |
public MPeninputServerEventHandler, |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
116 |
public MEikEdwinObserver, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
117 |
public MPenUiActivationHandler |
44 | 118 |
{ |
119 |
public: |
|
120 |
||
121 |
/** |
|
122 |
* Simulate event mode |
|
123 |
* @remark: Used in SubmitUiPluginTextL() |
|
124 |
*/ |
|
125 |
enum TSimulateEventMode |
|
126 |
{ |
|
127 |
EIgnor, |
|
128 |
ERawEvent, |
|
129 |
EKeyEvent |
|
130 |
}; |
|
131 |
||
132 |
/** |
|
133 |
* NewL first phase construction |
|
134 |
* |
|
135 |
* @param aFepMan fep manager |
|
136 |
* |
|
137 |
*/ |
|
138 |
static CAknFepPluginManager* NewL( CAknFepManager& aFepMan, |
|
139 |
CAknFepSharedDataInterface& aSharedData, |
|
140 |
CAknFepLanguageManager& aLangMan, |
|
141 |
CAknFepCaseManager& aCaseMan ); |
|
142 |
||
143 |
/** |
|
144 |
* Destructor |
|
145 |
*/ |
|
146 |
virtual ~CAknFepPluginManager(); |
|
147 |
||
148 |
private: |
|
149 |
||
150 |
/** |
|
151 |
* private constructor |
|
152 |
*/ |
|
153 |
CAknFepPluginManager( CAknFepManager& aFepMan, |
|
154 |
CAknFepSharedDataInterface& aSharedData, |
|
155 |
CAknFepLanguageManager& aLangMan, |
|
156 |
CAknFepCaseManager& aCaseMan ); |
|
157 |
||
158 |
/** |
|
159 |
* Construct |
|
160 |
* |
|
161 |
* @param aFepMan fep manager |
|
162 |
* |
|
163 |
*/ |
|
164 |
void ConstructL(); |
|
165 |
||
166 |
public : |
|
167 |
||
168 |
enum TSpellCBA |
|
169 |
{ |
|
170 |
ESpellCBANone, |
|
171 |
ESpellCBACancelEmpty, |
|
172 |
ESpellCBAOkCancel, |
|
173 |
}; |
|
174 |
||
175 |
public: |
|
176 |
||
177 |
// From MAknFepPenSupportInterface |
|
178 |
||
179 |
/** |
|
180 |
* From MAknFepPenSupportInterface |
|
181 |
* Activate pen input method |
|
182 |
* |
|
183 |
* @since 3.2 |
|
184 |
* @Return None |
|
185 |
*/ |
|
186 |
void ActivatePenInputL(); |
|
187 |
||
188 |
/** |
|
189 |
* From MAknFepPenSupportInterface |
|
190 |
* Deactivate pen input method |
|
191 |
* |
|
192 |
* @since 3.2 |
|
193 |
* @Return None |
|
194 |
*/ |
|
195 |
void DeactivatePenInputL(); |
|
196 |
||
197 |
// From MPeninputServerEventHandler |
|
198 |
||
199 |
/** |
|
200 |
* From MPeninputServerEventHandler |
|
201 |
* Handle pen input server events. |
|
202 |
* |
|
203 |
* @since 3.2 |
|
204 |
* @param aEventId Event to handle. |
|
205 |
* @return ETrue If server event handled |
|
206 |
*/ |
|
207 |
TBool HandleServerEventL(TInt aEventId); |
|
208 |
||
209 |
/** |
|
210 |
* Handle events from FEP |
|
211 |
* suggested mode. |
|
212 |
* |
|
213 |
* @since 3.2 |
|
214 |
* @param aEventType, event type from FEP |
|
215 |
* @param aEventData, event data from FEP |
|
216 |
* @return ETrue successful, EFalse otherwise |
|
217 |
*/ |
|
218 |
void HandleEventsFromFepL( TInt aEventType, TInt aEventData ); |
|
219 |
||
220 |
/** |
|
221 |
* Change current input method to plugin input method with |
|
222 |
* suggested mode. |
|
223 |
* |
|
224 |
* @since 3.2 |
|
225 |
* @return ETrue successful, EFalse otherwise |
|
226 |
*/ |
|
227 |
TBool TryChangePluginInputModeByModeL(TPluginInputMode aSuggestMode, TInt aOpenMode, |
|
228 |
TInt aSuggestRange); |
|
229 |
||
230 |
/** |
|
231 |
* Close plugin input mode, reset iPluginInputMode |
|
232 |
* to EPluginInputModeNone |
|
233 |
* |
|
234 |
* @since 3.2 |
|
235 |
* @param aRestore, If ETrue, restor rembered HKB mode |
|
236 |
* @return None |
|
237 |
*/ |
|
238 |
void ClosePluginInputModeL(TBool aRestore); |
|
239 |
||
240 |
/** |
|
241 |
* Close plugin input UI, only close UI |
|
242 |
* |
|
243 |
* @param aResetState If ETrue, reset UI state |
|
244 |
* to initial. |
|
245 |
* @return None. |
|
246 |
*/ |
|
247 |
void ClosePluginInputUiL(TBool aResetState); |
|
248 |
||
249 |
/** |
|
250 |
* Handle resource change. |
|
251 |
* |
|
252 |
* @param aType The resource type |
|
253 |
* @return None. |
|
254 |
*/ |
|
255 |
void OnResourceChangedL(TInt aType); |
|
256 |
||
257 |
/** |
|
258 |
* Synchronize plugin UI text with editor |
|
259 |
* |
|
260 |
* @since 3.2 |
|
261 |
* @return None |
|
262 |
*/ |
|
263 |
void SyncFepAwareText( TPluginSync aSyncType = EPluginSyncCurSel, TBool aSendNow = ETrue ); |
|
264 |
||
265 |
/** |
|
266 |
* Processes commands from the edit menu |
|
267 |
* |
|
268 |
* @since 3.2 |
|
269 |
* @param aCommandId The menu command id |
|
270 |
* @return None. |
|
271 |
*/ |
|
272 |
void ProcessMenuCommandL(TInt aCommandId); |
|
273 |
||
274 |
/** |
|
275 |
* Handle key events |
|
276 |
* |
|
277 |
* @since 3.2 |
|
278 |
* @param aCommandId The key id |
|
279 |
* @return None. |
|
280 |
*/ |
|
281 |
void HandleKeyEventL(TInt aKeyId); |
|
282 |
||
283 |
/** |
|
284 |
* initialize the edit menu depending on fep and editor state |
|
285 |
* |
|
286 |
* @since 3.2 |
|
287 |
* @param aMenuPane The pointer to menu pane |
|
288 |
* @return None. |
|
289 |
*/ |
|
290 |
void InitMenuPaneL( CAknEdwinState* aEditorState, |
|
291 |
CAknFepUiInterfaceMenuPane* aMenuPane, TInt aResourceId ); |
|
292 |
||
293 |
/** |
|
294 |
* Handles notifications that the UI has changed focus |
|
295 |
* |
|
296 |
* @since 3.2 |
|
297 |
* @param aFepFullyConstructed The flag of fep fully constructed |
|
298 |
* @return None. |
|
299 |
*/ |
|
300 |
void OnFocusChangedL( TBool aGainForeground ); |
|
301 |
||
302 |
||
303 |
/** |
|
304 |
* Set ICF data |
|
305 |
* |
|
306 |
* @since 3.2 |
|
307 |
* @param aTextChanged If editor text changed |
|
308 |
* @param aIcfData ICF data |
|
309 |
* @return None |
|
310 |
*/ |
|
311 |
void SendIcfDataL( TPluginSync aSyncType = EPluginSyncCurSel ); |
|
312 |
/** |
|
313 |
* Set editor cursor selection according plugin UI |
|
314 |
* cursor state |
|
315 |
* |
|
316 |
* @since 3.2 |
|
317 |
* @param aCurSel Cursor position. |
|
318 |
* @param aSyncCursor ETrue if plug in UI need update cursor, EFalse otherwise |
|
319 |
* @return None |
|
320 |
*/ |
|
321 |
void SetCursorSelectionL(const TCursorSelection& aCurSel, TBool aSyncCursor); |
|
322 |
||
323 |
HBufC* GetNumberKeymapResource(TInt aCaseMode); |
|
324 |
||
325 |
HBufC* DoGetNumberKeymapResourceL(TInt aCaseMode); |
|
326 |
||
327 |
MAknFepManagerInterface* CurrentFepInputUI(); |
|
328 |
||
329 |
void SetFingerMatchSelectionState(TBool aMatchStateOn); |
|
330 |
TBool IsVisible(); |
|
331 |
||
332 |
// send all predictive candidates at once |
|
333 |
void ShowAllCandidates(); |
|
334 |
||
335 |
void ResetCandidateList(); |
|
336 |
||
337 |
void UpdateFSQIndicator(); |
|
338 |
void UpdateITUTIndicator(); |
|
339 |
||
340 |
void SetITUTSpellingStateL(TBool aState); |
|
341 |
||
342 |
void DisplaySpellEditor(const TInt aEditorFlag, const TDesC& aInitText, |
|
343 |
TCursorSelection aCurSel); |
|
344 |
void DisplaySpellEditorL(const TInt aEditorFlag, const TDesC& aInitText, |
|
345 |
TCursorSelection aCurSel); |
|
346 |
||
347 |
void HideSpellEditor(); |
|
348 |
||
349 |
HBufC* SpellTextInput(); |
|
350 |
void SetTCursorSelection(); |
|
351 |
||
352 |
void HandleEdwinEventL(CEikEdwin* , TEdwinEvent aEventType); |
|
353 |
||
354 |
TInt GetSoftKeyResID(); |
|
355 |
||
356 |
void HasNoFreeSpace(); |
|
357 |
||
358 |
TBool EnterMatchSelectionState(); |
|
359 |
||
360 |
TPluginInputMode PluginInputMode(); |
|
361 |
||
362 |
void UpdateCaseMode(); |
|
363 |
||
364 |
TBool IsGlobleNotes(); |
|
365 |
TBool IsDimed(); |
|
366 |
/** |
|
367 |
* Save the cursor visibility. This function is called from fep side, |
|
368 |
* because of sync cursor visibility |
|
369 |
* |
|
370 |
* @since v5.0 |
|
371 |
*/ |
|
372 |
void SetCursorVisibility(TBool aVisibility, TBool aReportPlugin = EFalse); |
|
373 |
/** |
|
374 |
* Get the correct indicator for VKB; |
|
375 |
* |
|
376 |
* @return The correct indicator state for VKB. |
|
377 |
*/ |
|
378 |
TAknEditingState VKBIndicatorState( TAknEditingState aOldState ); |
|
379 |
void ClosePeninputSetting(); |
|
380 |
||
381 |
/** |
|
382 |
* Show tooltip on FSQ to show the best guess word shown inline, |
|
383 |
* when it is necessary |
|
384 |
* |
|
385 |
* @param aText The tooltip text to be displayed |
|
386 |
* @return None |
|
387 |
*/ |
|
388 |
void ShowTooltipOnFSQL( TInt aSecondaryIdx ); |
|
389 |
||
390 |
/** |
|
391 |
* Hide tooltip on FSQ if necessary |
|
392 |
* |
|
393 |
* @return None |
|
394 |
*/ |
|
395 |
void HideTooltipOnFSQL(); |
|
396 |
||
397 |
/** |
|
398 |
* Open a candidate list to show contents in aItemArray |
|
399 |
* |
|
400 |
* @param aCandidateList ITI candidate data |
|
401 |
* @return None |
|
402 |
*/ |
|
403 |
void ShowCandidateListL( TFepITICandidateList aCandidateList ); |
|
404 |
||
405 |
/** |
|
406 |
* Hide candidate list |
|
407 |
* |
|
408 |
*/ |
|
409 |
void HideCandidateListL(); |
|
410 |
||
411 |
/** |
|
412 |
* Commit candidate word on FSQ |
|
413 |
* |
|
414 |
* @param aIndex the index in candidate lists; |
|
415 |
* @return None |
|
416 |
*/ |
|
417 |
void CommitCandidateWordOnFSQL( TInt aIndex ); |
|
418 |
||
419 |
/** |
|
420 |
* Check if ITI features is enabled when FSQ is opened. |
|
421 |
*/ |
|
422 |
TBool EnableITIOnFSQ(); |
|
423 |
||
424 |
/** |
|
425 |
* Check if ITI can be supported by FSQ. |
|
426 |
*/ |
|
427 |
TBool IsSupportITIOnFSQ(); |
|
428 |
||
429 |
/** |
|
430 |
* Restore some configuration after closing FSQ. |
|
431 |
* |
|
432 |
*/ |
|
433 |
void ResetItiStateL(); |
|
434 |
||
435 |
/* |
|
436 |
#ifdef RD_TACTILE_FEEDBACK |
|
437 |
TBool VKBIsOpened(); |
|
438 |
#endif // RD_TACTILE_FEEDBACK |
|
439 |
*/ |
|
440 |
||
441 |
void HandleiDimGainForeground(TBool aGain); |
|
442 |
||
443 |
void OnServerReady(TInt aErr); |
|
444 |
||
445 |
/** |
|
446 |
* Remove last focused window,which launches touch input, from open list. |
|
447 |
* |
|
448 |
* @since v5.0 |
|
449 |
*/ |
|
450 |
void RemoveLastFocusedWinFromOpenList(); |
|
451 |
||
452 |
/** |
|
453 |
* Set the editor pointer to NULL |
|
454 |
* |
|
455 |
* @since v5.0 |
|
456 |
* @param none |
|
457 |
* @return void |
|
458 |
*/ |
|
459 |
void ClearDestroyedEditorPointer(); |
|
460 |
||
461 |
/** |
|
462 |
* Get the editor state |
|
463 |
* |
|
464 |
* @since v5.0 |
|
465 |
* @param none |
|
466 |
* @return the pointer of editor state |
|
467 |
*/ |
|
468 |
CAknEdwinState* EdwinState(); |
|
469 |
||
470 |
public: // inline |
|
471 |
||
472 |
/** |
|
473 |
* Get current plugin input UI |
|
474 |
* |
|
475 |
* @since 3.2 |
|
476 |
* @return The pointer to MAknFepManagerInterface |
|
477 |
*/ |
|
478 |
inline MAknFepManagerInterface* CurrentPluginInputFepUI(); |
|
479 |
||
480 |
/** |
|
481 |
* Get current plugin input mode |
|
482 |
* |
|
483 |
* @since 3.2 |
|
484 |
* @return current plugin input mode |
|
485 |
*/ |
|
486 |
||
487 |
inline TBool PluginNativeRange(); |
|
488 |
||
489 |
inline void SetPluginNativeRange( TBool aPluginNativeRange ); |
|
490 |
||
491 |
inline TBool SyncWithPluginRange(); |
|
492 |
||
493 |
inline RPointerArray<HBufC>& MatchCandidateList(); |
|
494 |
||
495 |
inline TBool IsMatchState(); |
|
496 |
||
497 |
inline TBool IsSpellVisible(); |
|
498 |
||
499 |
inline void SetCursorSelection(TCursorSelection& aCursorSel); |
|
500 |
||
501 |
inline TCursorSelection CursorSelection(); |
|
502 |
||
503 |
inline void SetCaseUpdatesSupressed(TBool aCaseUpdatesSupressed); |
|
504 |
inline TBool CaseUpdatesSupressed(); |
|
505 |
||
506 |
inline void SetBeforeSpell(TBool aBeforeSpell); |
|
507 |
inline TBool BeforeSpell(); |
|
508 |
inline HBufC* GetSpellText(); |
|
509 |
inline void SpellText(HBufC* aSpellText); |
|
510 |
inline TBool IsNonLatinLanguage(TLanguage aLang); |
|
511 |
inline TInt PreviousPermitMode(); |
|
512 |
/** |
|
513 |
* In T9 predictive text input, if user press "Spell" button, a edit word query dialog is opened. |
|
514 |
* This Flag is set for this case to indicate whether edit wod query dialog is opened. |
|
515 |
* @param aIsEditWordQueryDlg ETrue means dialog is open, |
|
516 |
EFalse means dialog is not open. |
|
517 |
* @since v5.0 |
|
518 |
*/ |
|
519 |
inline void SetInEditWordQueryFlag(TBool aIsEditWordQueryDlg ); |
|
520 |
void LaunchPenInputLanguageSelectionL( TBool aLaunchedByTouchWin = EFalse ); |
|
521 |
void LaunchPenInputRecognitionWithDictionarySelectionL(); |
|
522 |
void LaunchPenInputWritingSpeedSelectionL(); |
|
523 |
void LaunchPenInputGuidingLineSelectionL(); |
|
524 |
inline TBool IsInGlobleNoteEditor(); |
|
525 |
void SetMenuState(TBool aUpdateEditor = ETrue); |
|
526 |
void ResetMenuState(TBool aUnDim = ETrue); |
|
527 |
||
528 |
/** |
|
529 |
* When ITI setting opened, set this flag to ETrue |
|
530 |
* |
|
531 |
* @param aOpen ETrue means dialog is open, |
|
532 |
* EFalse means dialog is not open. |
|
533 |
* @return None |
|
534 |
*/ |
|
535 |
inline void ITISettingDialogOpen( TBool aOpen ); |
|
536 |
||
537 |
/** |
|
538 |
* Check if tooltip box on FSQ is opened. |
|
539 |
* |
|
540 |
* @return if ETrue: Tooltip box on FSQ is enabled. |
|
541 |
*/ |
|
542 |
inline TBool IsTooltipOpenOnFSQ(); |
|
543 |
||
544 |
/** |
|
545 |
* Get whether inMenu has been opened. |
|
546 |
* InMenu is that any pop-up dialog, e.g. menu, SCT, is launched by fep. |
|
547 |
* |
|
548 |
* @since 5.0 |
|
549 |
* @return whether inMenu has been opened |
|
550 |
*/ |
|
551 |
inline TBool IsInMenuOpen(); |
|
552 |
||
553 |
/** |
|
554 |
* Get current plugin input mode even if current window is close. |
|
555 |
* The function is defferent from PluginInputMode(), PluginInputMode() |
|
556 |
* return EPluginInputModeNone if current input window is closed |
|
557 |
* |
|
558 |
* @since 5.0 |
|
559 |
* @return current plugin input mode |
|
560 |
*/ |
|
561 |
inline TPluginInputMode CurrentPluginInputMode(); |
|
562 |
||
563 |
inline void SetLaunchSCTInSpell( TBool aLaunchSCTInSpell ); |
|
564 |
private: |
|
565 |
||
566 |
/** |
|
567 |
* Initialize plugin UI, set permitted ranges, primary |
|
568 |
* range, case mode and etc. |
|
569 |
* |
|
570 |
* @since 3.2 |
|
571 |
* @Return None |
|
572 |
*/ |
|
573 |
void InitializePluginInputL(TInt aOpenMode, TInt aSuggestRange, TBool aCleanContent); |
|
574 |
||
575 |
/** |
|
576 |
* Launch plugin menu |
|
577 |
* |
|
578 |
* @since 3.2 |
|
579 |
* @param aResource Menu resource id. |
|
580 |
* @return None |
|
581 |
*/ |
|
582 |
void LaunchPenInputMenuL(TInt aResourceId, TBool aRemeber = ETrue); |
|
583 |
||
584 |
/** |
|
585 |
* Show pen input language setting of general setting view |
|
586 |
* |
|
587 |
* @since 3.2 |
|
588 |
* @return None |
|
589 |
*/ |
|
590 |
||
591 |
/** |
|
592 |
* Show pen input setting of general setting view |
|
593 |
* @since 3.2 |
|
594 |
* @param aData Key data |
|
595 |
* @return None |
|
596 |
*/ |
|
597 |
void LaunchPenInputSettingL(); |
|
598 |
||
599 |
/** |
|
600 |
* Parse editor text passed to plugin ICF |
|
601 |
* Only return current paragraph of current cursor position. |
|
602 |
* |
|
603 |
* @since 3.2 |
|
604 |
* @param aBuffer Editor text |
|
605 |
* @param aCurrent Current cursor position. |
|
606 |
* @param aFrom Returned paragraph start pos. |
|
607 |
* @param aTo Returned paragraph end pos. |
|
608 |
* @return None |
|
609 |
*/ |
|
610 |
void ParseInputContextContent(TDes& aBuffer, TInt aCurrent, |
|
611 |
TInt& aFrom, TInt& aTo); |
|
612 |
||
613 |
||
614 |
/** |
|
615 |
* Submit text input from plugin UI to editor |
|
616 |
* |
|
617 |
* @since 3.2 |
|
618 |
* @param aData Key data |
|
619 |
* @param aForcedMode Forced simluate event mode. |
|
620 |
* @return None |
|
621 |
*/ |
|
622 |
void SubmitUiPluginTextL(const TDesC& aData, |
|
623 |
TSimulateEventMode aForcedMode = EIgnor); |
|
624 |
||
625 |
/** |
|
626 |
* Handle key event sent from pen input server |
|
627 |
* |
|
628 |
* @since 3.2 |
|
629 |
* @param aData Key data |
|
630 |
* @return None |
|
631 |
*/ |
|
632 |
void OnPenInputServerKeyEventL(const TDesC& aData); |
|
633 |
||
634 |
/** |
|
635 |
* Sync indicator with plugin range |
|
636 |
* |
|
637 |
* @since 3.2 |
|
638 |
* @Return None |
|
639 |
*/ |
|
640 |
void SyncIndicatorWithPluginRangeL(); |
|
641 |
||
642 |
/** |
|
643 |
* Get current suggest mode |
|
644 |
* |
|
645 |
* @since 3.2 |
|
646 |
* @param aSuggestMode The mode suggested |
|
647 |
* @Return None |
|
648 |
*/ |
|
649 |
TBool GetCurSuggestMode( TPluginInputMode& aSuggestMode ); |
|
650 |
||
651 |
/** |
|
652 |
* Connect server |
|
653 |
* |
|
654 |
* @since 3.2 |
|
655 |
* @Return ETrue If connection sucess |
|
656 |
*/ |
|
657 |
TBool ConnectServer(); |
|
658 |
||
659 |
/** |
|
660 |
* Notify layout |
|
661 |
* |
|
662 |
* @since 3.2 |
|
663 |
* @param aOpenMode The current input mode |
|
664 |
* @param aSuggestRange The suggest range |
|
665 |
* @Return None |
|
666 |
*/ |
|
667 |
void NotifyLayoutL(TInt aOpenMode, TInt aSuggestRange, TBool aCleanContent); |
|
668 |
||
669 |
/** |
|
670 |
* verify if mode switch button enable |
|
671 |
* |
|
672 |
* @since 3.2 |
|
673 |
* @Return ETrue if mode switch button enable |
|
674 |
*/ |
|
675 |
TBool IsEnableModeSwitchBtn(); |
|
676 |
||
677 |
/** |
|
678 |
* verify if setting buttons enable |
|
679 |
* |
|
680 |
* @since 3.2 |
|
681 |
* @Return ETrue if setting buttons enable |
|
682 |
*/ |
|
683 |
TBool IsEnableSettingBtn(); |
|
684 |
||
685 |
/** |
|
686 |
* Notify layout the editor's keymapping |
|
687 |
* |
|
688 |
* @since 3.2 |
|
689 |
* @Return None |
|
690 |
*/ |
|
691 |
void NotifyLayoutKeymappingL(); |
|
692 |
||
693 |
/** |
|
694 |
* Test data query show status |
|
695 |
* @since 3.2 |
|
696 |
* |
|
697 |
* @return ETrue if data query is showing now, EFalse otherwise |
|
698 |
*/ |
|
699 |
TBool IsDisplayDataQuery(); |
|
700 |
||
701 |
/** |
|
702 |
* Show pen input setting of general setting view |
|
703 |
* |
|
704 |
* @since 3.2 |
|
705 |
* @param aForce ETrue means adjusting data query no matter current showing status, |
|
706 |
EFalse means adjusting data query window only first time |
|
707 |
* @return None |
|
708 |
*/ |
|
709 |
void RepositionDataQuery(TBool aForce); |
|
710 |
||
711 |
/** |
|
712 |
* Timer procedure for adjust data query position |
|
713 |
* |
|
714 |
* @param aPtr The pointer of CAknFepManager itself |
|
715 |
* @since 3.2 |
|
716 |
* @return 0.(meaningless) |
|
717 |
*/ |
|
718 |
static TInt AdjustDataQueryCallBackL(TAny *aPtr); |
|
719 |
||
720 |
||
721 |
static void FepObserverHandleCompletionOfTransactionL(MCoeFepObserver& aFepObserver); |
|
722 |
||
723 |
void CreateFingerItutChineseUiL(); |
|
724 |
||
725 |
/** |
|
726 |
* Launch Hwr Training UI |
|
727 |
* |
|
728 |
* @since 3.2 |
|
729 |
* @return None |
|
730 |
*/ |
|
731 |
void LaunchHwrTrainUiL(); |
|
732 |
||
733 |
TBool GetIndicatorImgID(const TInt IndicatorUID,TInt &aImage, TInt &aMask); |
|
734 |
TBool GetIndicatorImgIDL(const TInt IndicatorUID,TInt &aImage, TInt &aMask); |
|
735 |
||
736 |
void SetPromptText( TBool aCleanContent = ETrue ); |
|
737 |
||
738 |
void SetIcfAlignment(); |
|
739 |
||
740 |
void ConvertDigitToDigittype(TDigitType& digittype,TDes& aConvertedNumeral); |
|
741 |
||
742 |
void GetAllPredictiveCandidate(); |
|
743 |
void GetAllPredictiveCandidateL(); |
|
744 |
||
745 |
void AddCurrentWinToOpenListL(); |
|
746 |
||
747 |
void AddWinToOpenListL( RDrawableWindow* aWin); |
|
748 |
||
749 |
void RemoveCurrentWinFromOpenList(); |
|
750 |
||
751 |
TBool IsCurrentWindInOpenList(); |
|
752 |
||
753 |
TBool ExistInlineText(); |
|
754 |
||
755 |
TBool SetSyncCurSelIcfDataL( TFepInputContextFieldData& aIcfData ); |
|
756 |
||
757 |
TBool SetSyncIcfDataL( TFepInputContextFieldData& aIcfData, |
|
758 |
const TDesC& aLastEditorContent, |
|
759 |
const TDesC& aCurrentEditorContent ); |
|
760 |
||
761 |
TBool TextInlined( const TDesC& aLastEditorContent, const TDesC& aCurrentEditorContent); |
|
762 |
||
763 |
TBool TextInserted( const TDesC& aLastEditorContent, const TDesC& aCurrentEditorContent); |
|
764 |
||
765 |
TBool TextDeleted( const TDesC& aLastEditorContent, const TDesC& aCurrentEditorContent); |
|
766 |
||
767 |
TBool TextMultiTapped( const TDesC& aLastEditorContent, const TDesC& aCurrentEditorContent); |
|
768 |
||
769 |
void AdjustDataCase( TDes& aData ); |
|
770 |
||
771 |
TBool IsDimArrowKeys(); |
|
772 |
||
773 |
void LaunchHelpL(); |
|
774 |
void DimAllModeAndCase(CAknFepUiInterfaceMenuPane* aMenuPane); |
|
775 |
||
776 |
TInt RepeatStringFromLeft(const TDesC& aSubmitData, TDes& aEditorData); |
|
777 |
||
778 |
void InformMfneUiStatusL( TBool aOpened ); |
|
779 |
||
780 |
/** |
|
781 |
* Update editor state according to current ui state |
|
782 |
* |
|
783 |
* @since Symbian^3 |
|
784 |
* @param aOpened specifies current ui is opened or closed |
|
785 |
*/ |
|
786 |
void SetEdwinFlagsByUiStatus( TBool aOpened ); |
|
787 |
||
788 |
/** |
|
789 |
* Update state flags of specified editor |
|
790 |
* |
|
791 |
* @since Symbian^3 |
|
792 |
* @param aEdwin specifies the editor to be updated |
|
793 |
* @param aFlags editor state flags |
|
794 |
* @param aSet ETrue to add flags, or EFalse to remove flags. |
|
795 |
*/ |
|
796 |
void SetAknEdwinFlags( MCoeFepAwareTextEditor* aEdwin, TInt aFlags, TBool aSet ); |
|
797 |
||
798 |
void UpdatePredicState(); |
|
799 |
||
800 |
TBool NotifyInGlobalNoteEditorL(); |
|
801 |
||
802 |
TBool IsChineseIndicator( TAknEditingState aOldState ); |
|
803 |
||
804 |
TBool IsEditorCursorDisabled(); |
|
805 |
||
806 |
/** |
|
807 |
* Check if the cusror in editor is visible. |
|
808 |
* |
|
809 |
* @return ETrue: the cursos in editor is visible. |
|
810 |
* EFalse: the cursos in editor is invisible. |
|
811 |
*/ |
|
812 |
TBool IsEditorCursorVisible(); |
|
813 |
||
814 |
||
815 |
/** |
|
816 |
* Check if curor selection in editor is visible. |
|
817 |
* |
|
818 |
* @return ETrue: the cursos in editor is visible. |
|
819 |
* EFalse: the cursos in editor is invisible. |
|
820 |
*/ |
|
821 |
TBool IsEditorCursorSelVisible(); |
|
822 |
||
823 |
/** |
|
824 |
* Get scan code from hw keymapping. |
|
825 |
* |
|
826 |
* @param aKeyCode unicode of each virutal key text. |
|
827 |
*/ |
|
828 |
TInt GetScanCodeFromHwKeymapping( TUint aKeyCode ); |
|
829 |
||
830 |
/** |
|
831 |
* Check if those keys are IIT-supported keys |
|
832 |
* |
|
833 |
* @param aKeyEvent The keys to be checked. |
|
834 |
*/ |
|
835 |
TBool IsITISupportedKey( const TKeyEvent& aKeyEvent ); |
|
836 |
||
837 |
TPtiTextCase CaseForMappedCharacter(TChar aCharacter); |
|
838 |
||
839 |
TBool IsNeedToChangeTextCase( const TPtiTextCase& aTextCase ); |
|
840 |
||
841 |
/** |
|
842 |
* Do some configuration to make FSQ support ITI features |
|
843 |
* |
|
844 |
*/ |
|
845 |
void SetItiStateL(); |
|
846 |
||
847 |
/** |
|
848 |
* Config keyboard layout for ITI |
|
849 |
* |
|
850 |
*/ |
|
851 |
void SetItiKeyboardLayoutL(); |
|
852 |
||
853 |
/** |
|
854 |
* Restore keyboard layout after closing FSQ. |
|
855 |
*/ |
|
856 |
void ResetItiKeyboardLayoutL(); |
|
857 |
||
858 |
/** |
|
859 |
* Restore predict state. |
|
860 |
*/ |
|
861 |
void RestorePredictStateL(); |
|
862 |
||
863 |
/** |
|
864 |
* Check if the keycode belongs to dead keys. |
|
865 |
* |
|
866 |
* @param aKeyCode: key code to be checked |
|
867 |
* @return ETrue: belongs to ETrue |
|
868 |
* EFalse: doesn't belong to EFalse; |
|
869 |
*/ |
|
870 |
TBool IsDeadKeyCode( TUint aKeyCode ); |
|
871 |
||
872 |
/** |
|
873 |
* Notify app touch window state. |
|
874 |
* |
|
875 |
* @param aParam |
|
876 |
* @return None |
|
877 |
*/ |
|
878 |
void NotifyAppUiImeTouchWndStateL( const TBool aTouchState ); |
|
879 |
||
880 |
/** |
|
881 |
* Check if current editor support partial screen IMEs |
|
882 |
* |
|
883 |
* @return ETrue if support |
|
884 |
*/ |
|
885 |
TBool IsEditorSupportSplitIme(); |
|
886 |
||
887 |
void SetICFTextForSpellL(); |
|
888 |
||
889 |
void SendMatchListCmd(const RArray<TPtrC>& aList); |
|
890 |
/** |
|
891 |
* Initialize the Menu item in Option Menu for Arabic Finger HWR |
|
892 |
* |
|
893 |
* @CAknFepUiInterfaceMenuPane* aMenuPane The menu pane used to add more menu items |
|
894 |
*/ |
|
895 |
void InitMenuItemForArabicFingerHwrL(CAknFepUiInterfaceMenuPane* aMenuPane); |
|
896 |
||
897 |
/** |
|
898 |
* andling the menu cmd for changing the input mode |
|
899 |
* |
|
900 |
* @param aInputMode: the inputmode should be activate |
|
901 |
* @return None |
|
902 |
*/ |
|
903 |
void ProcessChangingInputModeCmdL(TInt aInputMode); |
|
904 |
||
905 |
private: // Data |
|
906 |
||
907 |
/** |
|
908 |
* The reference of fep manager |
|
909 |
*/ |
|
910 |
CAknFepManager& iFepMan; |
|
911 |
||
912 |
/** |
|
913 |
* The reference of language manager |
|
914 |
*/ |
|
915 |
CAknFepLanguageManager& iLangMan; |
|
916 |
||
917 |
/** |
|
918 |
* The reference of case manager |
|
919 |
*/ |
|
920 |
CAknFepCaseManager& iCaseMan; |
|
921 |
||
922 |
/** |
|
923 |
* The reference of shared data manager |
|
924 |
*/ |
|
925 |
CAknFepSharedDataInterface& iSharedData; |
|
926 |
||
927 |
||
928 |
/** |
|
929 |
* Current plugin UI interface |
|
930 |
*/ |
|
931 |
MAknFepManagerInterface* iCurrentPluginInputFepUI; |
|
932 |
||
933 |
/** |
|
934 |
* Current plugin input mode |
|
935 |
*/ |
|
936 |
TPluginInputMode iPluginInputMode; |
|
937 |
||
938 |
/** |
|
939 |
* Current plugin primary range |
|
940 |
*/ |
|
941 |
TInt iPluginPrimaryRange; |
|
942 |
||
943 |
/** |
|
944 |
* Update editor cursor timer |
|
945 |
*/ |
|
946 |
CPeriodic* iAdjustDataQueryTimer; |
|
947 |
||
948 |
/** |
|
949 |
* HKB predictive state before starting plugin IME |
|
950 |
*/ |
|
951 |
TBool iT9UsedBeforePluginInput; |
|
952 |
||
953 |
/** |
|
954 |
* Indicating connection state to pen input server |
|
955 |
*/ |
|
956 |
TBool iAutoCompBeforePluginInput; |
|
957 |
/** |
|
958 |
* Indicating connection state to pen input server |
|
959 |
*/ |
|
960 |
TBool iPenInputSvrConnected; |
|
961 |
||
962 |
/** |
|
963 |
* flags of layout UI submit status |
|
964 |
*/ |
|
965 |
TInt iLastSubmitCount; |
|
966 |
||
967 |
/** |
|
968 |
* Data query showing status |
|
969 |
*/ |
|
970 |
TBool iDataQueryAlreadyShow; |
|
971 |
||
972 |
/** |
|
973 |
* Plugin menu manager object |
|
974 |
*/ |
|
975 |
CAknFepPluginMenuManager* iPenInputMenu; |
|
976 |
||
977 |
/** |
|
978 |
* Pen input server handle |
|
979 |
*/ |
|
980 |
RPeninputServer iPenInputServer; |
|
981 |
||
982 |
/** |
|
983 |
* flags of language has been changed by setting |
|
984 |
*/ |
|
985 |
TInt iCurLanguage; |
|
986 |
||
987 |
/** |
|
988 |
* flags of fast swap by menu |
|
989 |
*/ |
|
990 |
TBool iFastSwapByMenu; |
|
991 |
||
992 |
MAknFepManagerInterface* iFingerItutChineseUI; |
|
993 |
||
994 |
TCursorSelection iCurSelPre; |
|
995 |
||
996 |
TCursorSelection iCurSelCur; |
|
997 |
||
998 |
TPluginSync iSyncType; |
|
999 |
||
1000 |
HBufC* iIcfDataBuf; |
|
1001 |
||
1002 |
RPointerArray<HBufC> iCandidateList; |
|
1003 |
TInt iCandidateIndex; |
|
1004 |
||
1005 |
TFepInputAllCandidates iSendAllList; |
|
1006 |
||
1007 |
TBool iMatchState; |
|
1008 |
||
1009 |
TInt iIndicatorImgID; |
|
1010 |
CAknFepUiSpellContainer* iSpell; |
|
1011 |
||
1012 |
TBool iSpellOn; |
|
1013 |
||
1014 |
TCursorSelection iCursorSel; |
|
1015 |
||
1016 |
TInt iIndicatorTextID; |
|
1017 |
||
1018 |
TBool iCaseUpdatesSupressed; |
|
1019 |
||
1020 |
TBool iBeforeSpell; |
|
1021 |
||
1022 |
HBufC* iSpellText; |
|
1023 |
||
1024 |
TSpellCBA iSpellCba; |
|
1025 |
TBool iPenUiDimmed; |
|
1026 |
TBool iIsForeground; |
|
1027 |
||
1028 |
TInt iPreDocumentLengthForFep; |
|
1029 |
TInt iOpenPenUiFlag; |
|
1030 |
||
1031 |
TBool iPluginNativeRange; |
|
1032 |
||
1033 |
TBool iSyncWithPluginRange; |
|
1034 |
||
1035 |
RArray<TInt> iOpenWindowList; |
|
1036 |
TInt iLastFocusedWin; |
|
1037 |
||
1038 |
HBufC* iLastEditorContentBuf; |
|
1039 |
||
1040 |
TBool iModeChanged; |
|
1041 |
||
1042 |
TInt iPreviousCoseMode; |
|
1043 |
||
1044 |
TBool iLaunchMenu; |
|
1045 |
TBool iInMenu; // need to check whether it can be replaced by iLaunchMenu |
|
1046 |
TUint iCurMFNECap; |
|
1047 |
MCoeFepAwareTextEditor* iCurEditor; |
|
1048 |
MCoeFepAwareTextEditor* iOldFepAwareEditor; |
|
1049 |
||
1050 |
RDrawableWindow * iLastDataQueryWin; |
|
1051 |
||
1052 |
TInt iDefaultOrientation; |
|
1053 |
RBuf iEventData; |
|
1054 |
TBool iDisableSyncText; |
|
1055 |
TBool iPendingSyncReq; |
|
1056 |
TBool iHasSWEventCap; |
|
1057 |
TInt iCurPermitModes; |
|
1058 |
TBool isLanuchSCT; |
|
1059 |
TBool iInGlobleNoteEditor; |
|
1060 |
TBool iOrientationChanged; |
|
1061 |
TBool iInlineStateOn; |
|
1062 |
TInt iCharStartPostion; |
|
1063 |
/** |
|
1064 |
* Cursor Visibility |
|
1065 |
*/ |
|
1066 |
TInt iEditorPriority; |
|
1067 |
TBool iDimGainForeground; |
|
1068 |
TBool iEnableIndicatorBtn; |
|
1069 |
TBool iEnableSettingBtn; |
|
1070 |
TBool iEnableArrowBtn; |
|
1071 |
TBool iCursorVisibility; |
|
1072 |
TBool iForegroundChange; |
|
1073 |
TBool iResourceChange; |
|
1074 |
||
1075 |
TBool iLaunchHelp; |
|
1076 |
TInt iCurPermittedModes; |
|
1077 |
MCoeFepAwareTextEditor* iMfne; |
|
1078 |
||
1079 |
/** |
|
1080 |
* current focused editor |
|
1081 |
* not own |
|
1082 |
*/ |
|
1083 |
MCoeFepAwareTextEditor* iEdwin; |
|
1084 |
||
1085 |
TBool iMfneChanged; |
|
1086 |
TBool iIsInEditWordQueryDlg; |
|
1087 |
||
1088 |
TBool iPreferredUiMode; |
|
1089 |
||
1090 |
CRepository* iAvkonRepository; |
|
1091 |
||
1092 |
TBool iClosePluginInputMode; |
|
1093 |
||
1094 |
TBool iOrientationChangedfromUI; |
|
1095 |
||
1096 |
CPenInputGSInterface* iGsInterface; |
|
1097 |
RBuf iPreCaption; |
|
1098 |
TBool iIsPassWord; |
|
1099 |
||
1100 |
/** |
|
1101 |
* Store the last keyboard layout. |
|
1102 |
*/ |
|
1103 |
TInt iLastKeyboardLayout; |
|
1104 |
||
1105 |
||
1106 |
/** |
|
1107 |
* Indicate if predictive setting dialog opened. |
|
1108 |
*/ |
|
1109 |
TBool iITISettingDialogOpen; |
|
1110 |
||
1111 |
/** |
|
1112 |
* Indicate if current input mode is qwerty mode. |
|
1113 |
*/ |
|
1114 |
TBool iIsITIConfigured; |
|
1115 |
||
1116 |
/** |
|
1117 |
* Indicate if tooltip on FSQ is opened |
|
1118 |
*/ |
|
1119 |
TBool iTooltipOpenOnFSQ; |
|
1120 |
||
1121 |
TInt iAlignment; |
|
1122 |
||
1123 |
CConnectAo* iConnectAo; |
|
1124 |
||
1125 |
/** |
|
1126 |
* Indicate if need fetch the dim state from peninputserver |
|
1127 |
*/ |
|
1128 |
TBool iNeedFetchDimState; |
|
1129 |
||
1130 |
/** |
|
1131 |
* save the current dim state |
|
1132 |
*/ |
|
1133 |
TBool iCurrentDimState; |
|
1134 |
||
1135 |
TBool iLaunchSCTInSpell; |
|
1136 |
||
1137 |
TBool iFocuschangedForSpellEditor; |
|
1138 |
||
1139 |
/** |
|
1140 |
* Indicate whether portrait FSQ feature is enabled |
|
1141 |
*/ |
|
1142 |
TBool iPortraitFSQEnabled; |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1143 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1144 |
private: |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1145 |
// From MPenUiActivationHandler |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1146 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1147 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1148 |
* From MPenUiActivationHandler |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1149 |
* Called when pen input UI is about to be closed |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1150 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1151 |
void OnPeninputUiDeactivated(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1152 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1153 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1154 |
* From MPenUiActivationHandler |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1155 |
* Called when pen input UI is about to be open |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1156 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1157 |
void OnPeninputUiActivated(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1158 |
private: |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1159 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1160 |
* Indicate if plugin manager initiate to close input ui. |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1161 |
* This flag is used to avoid incursive calling |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1162 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1163 |
TBool iInitiateCloseInputUi; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
1164 |
|
44 | 1165 |
}; |
1166 |
||
1167 |
class CConnectAo : public CActive |
|
1168 |
{ |
|
1169 |
public: |
|
1170 |
||
1171 |
CConnectAo(CAknFepPluginManager* aClient); |
|
1172 |
||
1173 |
/** |
|
1174 |
* From CActive |
|
1175 |
* will be called when stroke timer ends |
|
1176 |
* |
|
1177 |
* @since S60 v4.0 |
|
1178 |
*/ |
|
1179 |
void RunL(); |
|
1180 |
||
1181 |
/** |
|
1182 |
* From CActive |
|
1183 |
* will be called if RunL leaves |
|
1184 |
* |
|
1185 |
* @since S60 v4.0 |
|
1186 |
*/ |
|
1187 |
TInt RunError(TInt aError); |
|
1188 |
||
1189 |
/** |
|
1190 |
* From CActive |
|
1191 |
* will be called when stroke timer has been cancelled |
|
1192 |
* |
|
1193 |
* @since S60 v4.0 |
|
1194 |
*/ |
|
1195 |
void DoCancel(); |
|
1196 |
void RequestConnect(); |
|
1197 |
TRequestStatus& RequestStatus(); |
|
1198 |
||
1199 |
CAknFepPluginManager* iClient; |
|
1200 |
}; |
|
1201 |
||
1202 |
||
1203 |
// --------------------------------------------------------------------------- |
|
1204 |
// CAknFepPluginManager::CurrentPluginInputFepUI |
|
1205 |
// (other items were commented in a header) |
|
1206 |
// --------------------------------------------------------------------------- |
|
1207 |
// |
|
1208 |
inline MAknFepManagerInterface* CAknFepPluginManager::CurrentPluginInputFepUI() |
|
1209 |
{ |
|
1210 |
return iCurrentPluginInputFepUI; |
|
1211 |
} |
|
1212 |
||
1213 |
inline TBool CAknFepPluginManager::PluginNativeRange() |
|
1214 |
{ |
|
1215 |
return iPluginNativeRange; |
|
1216 |
} |
|
1217 |
||
1218 |
inline TBool CAknFepPluginManager::SyncWithPluginRange() |
|
1219 |
{ |
|
1220 |
return iSyncWithPluginRange; |
|
1221 |
} |
|
1222 |
||
1223 |
inline void CAknFepPluginManager::SetPluginNativeRange( TBool aPluginNativeRange ) |
|
1224 |
{ |
|
1225 |
iPluginNativeRange = aPluginNativeRange; |
|
1226 |
} |
|
1227 |
||
1228 |
inline RPointerArray<HBufC>& CAknFepPluginManager::MatchCandidateList() |
|
1229 |
{ |
|
1230 |
return iCandidateList; |
|
1231 |
} |
|
1232 |
||
1233 |
inline TBool CAknFepPluginManager::IsMatchState() |
|
1234 |
{ |
|
1235 |
return iMatchState; |
|
1236 |
} |
|
1237 |
||
1238 |
inline TBool CAknFepPluginManager::IsSpellVisible() |
|
1239 |
{ |
|
1240 |
return iSpellOn; |
|
1241 |
} |
|
1242 |
||
1243 |
inline void CAknFepPluginManager::SetCursorSelection(TCursorSelection& aCursorSel) |
|
1244 |
{ |
|
1245 |
iCursorSel = aCursorSel; |
|
1246 |
} |
|
1247 |
||
1248 |
inline TCursorSelection CAknFepPluginManager::CursorSelection() |
|
1249 |
{ |
|
1250 |
return iCursorSel; |
|
1251 |
} |
|
1252 |
||
1253 |
inline void CAknFepPluginManager::SetCaseUpdatesSupressed(TBool aCaseUpdatesSupressed) |
|
1254 |
{ |
|
1255 |
iCaseUpdatesSupressed = aCaseUpdatesSupressed; |
|
1256 |
} |
|
1257 |
||
1258 |
inline TBool CAknFepPluginManager::CaseUpdatesSupressed() |
|
1259 |
{ |
|
1260 |
return iCaseUpdatesSupressed; |
|
1261 |
} |
|
1262 |
||
1263 |
inline void CAknFepPluginManager::SetBeforeSpell(TBool aBeforeSpell) |
|
1264 |
{ |
|
1265 |
iBeforeSpell = aBeforeSpell; |
|
1266 |
} |
|
1267 |
||
1268 |
inline TBool CAknFepPluginManager::BeforeSpell() |
|
1269 |
{ |
|
1270 |
return iBeforeSpell; |
|
1271 |
} |
|
1272 |
||
1273 |
inline HBufC* CAknFepPluginManager::GetSpellText() |
|
1274 |
{ |
|
1275 |
return iSpellText; |
|
1276 |
} |
|
1277 |
||
1278 |
inline void CAknFepPluginManager::SpellText(HBufC* aSpellText) |
|
1279 |
{ |
|
1280 |
if (aSpellText) |
|
1281 |
{ |
|
1282 |
delete iSpellText; |
|
1283 |
iSpellText = aSpellText->Alloc(); |
|
1284 |
} |
|
1285 |
else |
|
1286 |
{ |
|
1287 |
delete iSpellText; |
|
1288 |
iSpellText = NULL; |
|
1289 |
} |
|
1290 |
} |
|
1291 |
||
1292 |
inline TBool CAknFepPluginManager::IsNonLatinLanguage(TLanguage aLang) |
|
1293 |
{ |
|
1294 |
return (aLang == ELangRussian) || (aLang == ELangBulgarian ) || |
|
1295 |
(aLang == ELangUkrainian) || (aLang == ELangUrdu ) || |
|
1296 |
(aLang == ELangVietnamese) || (aLang == ELangThai ) || |
|
1297 |
(aLang == ELangArabic) || (aLang == ELangFarsi ) || |
|
1298 |
(aLang == ELangHebrew) ; |
|
1299 |
} |
|
1300 |
||
1301 |
inline TInt CAknFepPluginManager::PreviousPermitMode() |
|
1302 |
{ |
|
1303 |
return iCurPermitModes; |
|
1304 |
} |
|
1305 |
inline void CAknFepPluginManager::SetInEditWordQueryFlag(TBool aIsEditWordQueryDlg ) |
|
1306 |
{ |
|
1307 |
iIsInEditWordQueryDlg = aIsEditWordQueryDlg; |
|
1308 |
} |
|
1309 |
||
1310 |
inline TBool CAknFepPluginManager::IsInGlobleNoteEditor() |
|
1311 |
{ |
|
1312 |
return iInGlobleNoteEditor; |
|
1313 |
} |
|
1314 |
||
1315 |
inline void CAknFepPluginManager::ITISettingDialogOpen( TBool aOpen ) |
|
1316 |
{ |
|
1317 |
iITISettingDialogOpen = aOpen; |
|
1318 |
} |
|
1319 |
||
1320 |
inline TBool CAknFepPluginManager::IsTooltipOpenOnFSQ() |
|
1321 |
{ |
|
1322 |
return iTooltipOpenOnFSQ; |
|
1323 |
} |
|
1324 |
||
1325 |
inline TBool CAknFepPluginManager::IsInMenuOpen() |
|
1326 |
{ |
|
1327 |
return iInMenu; |
|
1328 |
} |
|
1329 |
||
1330 |
inline TPluginInputMode CAknFepPluginManager::CurrentPluginInputMode() |
|
1331 |
{ |
|
1332 |
return iPluginInputMode; |
|
1333 |
} |
|
1334 |
||
1335 |
inline void CAknFepPluginManager::SetLaunchSCTInSpell( TBool aLaunchSCTInSpell ) |
|
1336 |
{ |
|
1337 |
iLaunchSCTInSpell = aLaunchSCTInSpell; |
|
1338 |
} |
|
1339 |
||
1340 |
#endif //RD_SCALABLE_UI_V2 |
|
1341 |
||
1342 |
#endif // __AKN_FEP_PLUGIN_MANAGER__ |
|
1343 |
||
1344 |
// End of file |