|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 #ifndef _AKNFEP_SHARED_DATA_INT_H__ |
|
30 #define _AKNFEP_SHARED_DATA_INT_H__ |
|
31 |
|
32 #include <e32base.h> |
|
33 |
|
34 #include <e32property.h> |
|
35 #include <cenrepnotifyhandler.h> |
|
36 class CRepository; |
|
37 |
|
38 class CAknFepRepositoryWatcher : public CBase, public MCenRepNotifyHandlerCallback |
|
39 { |
|
40 public: |
|
41 static CAknFepRepositoryWatcher* NewL( |
|
42 const TUid aUid, |
|
43 const TUint32 aKey, |
|
44 CCenRepNotifyHandler::TCenRepKeyType aKeyType, |
|
45 TCallBack aCallBack, |
|
46 CRepository* aRepository); |
|
47 |
|
48 static CAknFepRepositoryWatcher* NewL( |
|
49 const TUid aUid, |
|
50 TCallBack aCallBack, |
|
51 CRepository* aRepository); |
|
52 |
|
53 ~CAknFepRepositoryWatcher(); |
|
54 |
|
55 TUint32 ChangedKey(); |
|
56 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
57 inline TBool IsGenericCenrepChange(){return iIsGeneric;} |
|
58 #endif |
|
59 |
|
60 public: // from MCenRepNotifyHandlerCallback |
|
61 void HandleNotifyInt (TUint32 aKey, TInt aNewValue); |
|
62 void HandleNotifyError (TUint32 aKey, TInt aError, CCenRepNotifyHandler* aHandler); |
|
63 void HandleNotifyGeneric(TUint32 aId); |
|
64 |
|
65 private: |
|
66 CAknFepRepositoryWatcher( |
|
67 const TUid aUid, |
|
68 const TUint32 aKey, |
|
69 TCallBack aCallBack, |
|
70 CRepository* aRepository); |
|
71 |
|
72 void ConstructL(CCenRepNotifyHandler::TCenRepKeyType aKeyType); |
|
73 |
|
74 void ConstructL(); |
|
75 |
|
76 private: |
|
77 TUid iUid; |
|
78 TUint32 iKey; |
|
79 TUint32 iChangedKey; |
|
80 TCallBack iCallBack; |
|
81 CRepository* iRepository; |
|
82 CCenRepNotifyHandler* iNotifyHandler; |
|
83 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
84 TBool iIsGeneric; |
|
85 #endif |
|
86 }; |
|
87 |
|
88 |
|
89 class CAknFepManager; |
|
90 |
|
91 class CAknFepSharedDataInterface : public CBase |
|
92 { |
|
93 public: |
|
94 /** |
|
95 * Two phase constructor for this class |
|
96 */ |
|
97 static CAknFepSharedDataInterface* NewL(CAknFepManager* aFepManager); |
|
98 |
|
99 /** |
|
100 * C++ Destructor |
|
101 */ |
|
102 ~CAknFepSharedDataInterface(); |
|
103 |
|
104 public: |
|
105 /** |
|
106 * Queries the value of PredictiveTextOn from shared data |
|
107 * |
|
108 * @return 1 for on or 0 for off |
|
109 */ |
|
110 TInt PredictiveTextOn(); |
|
111 |
|
112 /** |
|
113 * Queries the value of Japanese PredictiveTextOn from shared data |
|
114 * |
|
115 * @since 2.6 |
|
116 * @return 1 for on or 0 for off |
|
117 */ |
|
118 TInt PredictiveTextJapaneseOn(); |
|
119 |
|
120 /** |
|
121 * Queries the value of InputMode from shared data |
|
122 * |
|
123 * @since 2.6 |
|
124 * @return value of current input mode |
|
125 */ |
|
126 TInt InputMode(); |
|
127 |
|
128 /** |
|
129 * Sets the value of InputMode in shared data to the passed value |
|
130 * |
|
131 * @since 2.6 |
|
132 * @param aValue new value set to InputMode shared data item which |
|
133 * represents the input mode currently being used |
|
134 */ |
|
135 void SetInputMode(TInt aInputMode); |
|
136 |
|
137 /** |
|
138 * Queries the value of CangJieMode from shared data |
|
139 * |
|
140 * @since 3.0 |
|
141 * @return value of current input mode |
|
142 */ |
|
143 TInt CangJieMode(); |
|
144 |
|
145 /** |
|
146 * Sets the value of CangJieMode in shared data to the passed value |
|
147 * |
|
148 * @since 3.0 |
|
149 * @param aValue new value set to CangJieMode shared data item which |
|
150 * represents the input mode currently being used |
|
151 */ |
|
152 void SetCangJieMode(TInt aNewCangJieMode); |
|
153 |
|
154 /** |
|
155 * Queries the value of iInputTextLang from shared data |
|
156 * |
|
157 * @return language code of currently used language |
|
158 */ |
|
159 TInt InputTextLanguage(); |
|
160 |
|
161 /** |
|
162 * Sets the value of InputTextLanguage in shared data to the passed value |
|
163 * |
|
164 * @param aValue new value set to InputTextLanguage shared data item which |
|
165 * represents the language code currently being used |
|
166 */ |
|
167 void SetInputTextLanguage(TInt aValue); |
|
168 |
|
169 /** |
|
170 * Queries the value of iDisplayLang from shared data |
|
171 * |
|
172 * @return language code of currently display language |
|
173 */ |
|
174 TInt DisplayLanguage(); |
|
175 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
176 /** |
|
177 * Sets the Fn key state and copies it to Cenrep. |
|
178 * |
|
179 * @return Nothing |
|
180 */ |
|
181 void SetFnKeyState(TInt aState); |
|
182 TInt GetFnKeyState(); |
|
183 #ifdef FF_DUAL_LANGUAGE_SUPPORT |
|
184 /** |
|
185 * Queries the value of secondary input language from shared data |
|
186 * |
|
187 * @return language code of currently used language |
|
188 */ |
|
189 TInt InputTextLanguageSecondary(); |
|
190 /** |
|
191 * Sets the value of secondary input language in shared data to the passed value |
|
192 * |
|
193 * @param aValue new value set to InputTextLanguageSecondary shared data item |
|
194 * which represents the language code currently being used |
|
195 */ |
|
196 void SetInputTextLanguageSecondary(TInt aValue); |
|
197 #endif // FF_DUAL_LANGUAGE_SUPPORT |
|
198 #endif |
|
199 |
|
200 /** |
|
201 * Sets the value of PredictiveTextOn to 1 in shared data - this |
|
202 * is used to represent predictive text being on |
|
203 */ |
|
204 void SetPredictiveTextOn(); |
|
205 |
|
206 /** |
|
207 * Sets the value of PredictiveTextOn to 0 in shared data - this |
|
208 * is used to represent predictive text being off |
|
209 */ |
|
210 void ResetPredictiveTextOn(); |
|
211 |
|
212 /** |
|
213 * Sets the value of Japanese PredictiveTextOn to 1 in shared data |
|
214 * - this is used to represent Japanese predictive text being on |
|
215 * |
|
216 * @since 2.6 |
|
217 */ |
|
218 void SetJapanesePredictiveTextOn(); |
|
219 |
|
220 /** |
|
221 * Sets the value of Japanese PredictiveTextOn to 0 in shared data |
|
222 * - this is used to represent Japanese predictive text being off |
|
223 * |
|
224 * @since 2.6 |
|
225 */ |
|
226 void ResetJapanesePredictiveTextOn(); |
|
227 |
|
228 /** |
|
229 * Query if KAknFepScrollLatinPredictive feature is enabled in shared data. |
|
230 * |
|
231 * @since 2.6 |
|
232 * @return Value of KAknFepScrollLatinPredictive setting. |
|
233 */ |
|
234 TInt ScrollLatinPredictiveCandidates() const; |
|
235 |
|
236 /** |
|
237 * Query if KAknFepSpaceWithScrollRight feature is enabled in shared data. |
|
238 * |
|
239 * @since 2.6 |
|
240 * @return Value of KAknFepSpaceWithScrollRight setting. |
|
241 */ |
|
242 TInt SpaceWithScrollRight() const; |
|
243 |
|
244 /** |
|
245 * Query if KAknFepEnterWithScrollDown feature is enabled in shared data. |
|
246 * |
|
247 * @since 2.6 |
|
248 * @return Value of KAknFepEnterWithScrollDown setting. |
|
249 */ |
|
250 TInt EntersWithScrollDown() const; |
|
251 |
|
252 /** |
|
253 * Query Qwerty input mode. |
|
254 * |
|
255 * @since 2.6 |
|
256 * @return Value of KAknQwertyInputModeActive setting. |
|
257 */ |
|
258 TInt QwertyInputMode() ; //const; |
|
259 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
260 /** |
|
261 * Reads Cenrep and returns the keyboard layout |
|
262 * |
|
263 */ |
|
264 TInt KeyboardLayout() ;//const |
|
265 #endif |
|
266 |
|
267 |
|
268 /** |
|
269 * Returns a value indicating whether edit-submenu functionality should be |
|
270 * used in options menu. |
|
271 * |
|
272 * @since 3.1 |
|
273 * @return Value indicating whether edit submenu should be used. |
|
274 */ |
|
275 TInt EditSubmenuInUse() const; |
|
276 |
|
277 /** |
|
278 * Returns a value indicating whether edit-submenu functionality should be |
|
279 * used in options menu. |
|
280 * |
|
281 * @since 3.1 |
|
282 * @return Value indicating whether edit submenu should be used. |
|
283 */ |
|
284 TInt HashKeySelectionInUse(); |
|
285 |
|
286 /** |
|
287 * Multitap timer value. |
|
288 * Replaces the constant KMultiTapTimeoutMS in Japanese variant. |
|
289 * |
|
290 * @since 3.0 |
|
291 * @return Value of KAknFepMultiTapTimer setting. |
|
292 */ |
|
293 TInt MultiTapTimer() const; |
|
294 /** |
|
295 * Japanese Qwerty Flags value. |
|
296 * Replaces the constant KAknFepJapaneseSpecialCharFlag in Japanese variant. |
|
297 * |
|
298 * @since 3.0 |
|
299 * @return Value of KAknFepJapaneseSpecialCharFlag setting. |
|
300 */ |
|
301 TInt JapaneseQwertyFlags() const; |
|
302 |
|
303 /** |
|
304 * Get the last used plugin input mode |
|
305 * |
|
306 * @since 3.2 |
|
307 * @return Value of KAknFepLastUsedInput setting. |
|
308 */ |
|
309 TInt PluginInputMode() const; |
|
310 |
|
311 /** |
|
312 * Replaces the last used plugin input mode |
|
313 * |
|
314 * @since 3.2 |
|
315 * @return Replace value of KAknFepLastUsedInput setting. |
|
316 */ |
|
317 void SetPluginInputMode(TInt aId); |
|
318 |
|
319 |
|
320 /** |
|
321 * Get the last used plugin UI language |
|
322 * |
|
323 * @since 3.2 |
|
324 * @return Value of KAknFepLastUsedUILanguage setting. |
|
325 */ |
|
326 TInt PluginUILanguage() const; |
|
327 |
|
328 /** |
|
329 * Replaces the last used plugin UI language |
|
330 * |
|
331 * @since 3.2 |
|
332 * @param aLanguage Replace value of KAknFepLastUsedUILanguage setting. |
|
333 */ |
|
334 void SetPluginUILanguage(TInt aLanguage); |
|
335 |
|
336 |
|
337 /** |
|
338 * Get current pen input language |
|
339 * @since 3.0 |
|
340 * |
|
341 * @return Value of KSettingsPenInputLang |
|
342 */ |
|
343 TInt PenInputLanguage() const; |
|
344 |
|
345 /** |
|
346 * Replaces the value of number input mode |
|
347 * |
|
348 * @since 3.2 |
|
349 * @param aMode (KSettingsDefaultNumberMode or KSettingsIndicDefaultNumberMode) |
|
350 * @param aValue a value |
|
351 */ |
|
352 void SetDefaultNumberMode( TInt aMode, TInt aValue ); |
|
353 |
|
354 /** |
|
355 * Returns a value of current clear direction. |
|
356 * |
|
357 * @since 3.2 |
|
358 * @return Value of KAknFepClearDirection setting. |
|
359 */ |
|
360 TInt ClearDirection() const; |
|
361 |
|
362 /** |
|
363 * Set a value of current clear direction. |
|
364 * |
|
365 * @since 3.2 |
|
366 * @param aValue new value set to Clear Direction shared data item which |
|
367 * represents the direction currently being used |
|
368 */ |
|
369 void SetClearDirection(TInt aValue); |
|
370 /** |
|
371 * Queries the value of PredictiveText Auto Word Completion state to be On from shared data |
|
372 * |
|
373 * @return 1 for on or 0 for off |
|
374 * Since 5.0 |
|
375 */ |
|
376 TInt CAknFepSharedDataInterface::PredictiveTextAutoCompleteOn(); |
|
377 |
|
378 |
|
379 /** |
|
380 * Sets the value of PredictiveText Auto Word Completion state to 1 in shared data - this |
|
381 * is used to represent predictive text Auto Word Completion being on |
|
382 * Since 5.0 |
|
383 */ |
|
384 void CAknFepSharedDataInterface::SetPredictiveTextAutoCompleteOn(); |
|
385 |
|
386 |
|
387 /** |
|
388 * Sets the value of PredictiveText Auto Word Completion state to 0 in shared data - this |
|
389 * is used to represent predictive text Auto Word Completion being off |
|
390 * Since 5.0 |
|
391 */ |
|
392 void CAknFepSharedDataInterface::ResetPredictiveTextAutoCompleteOn(); |
|
393 #ifndef RD_INTELLIGENT_TEXT_INPUT |
|
394 |
|
395 /** |
|
396 * Handles a change in predictive text Auto Word Completion setting from general settings |
|
397 * Since 5.0 |
|
398 */ |
|
399 void CAknFepSharedDataInterface::HandlePredictiveTextAutoCompleteSettingGSChange(); |
|
400 #endif |
|
401 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
402 |
|
403 /** |
|
404 * Handles a change in predictive text Auto Word Completion setting from general settings |
|
405 * Since 5.0 |
|
406 */ |
|
407 void HandlePredictiveTextAutoCompleteSettingGSChange(); |
|
408 #endif // |
|
409 |
|
410 /** |
|
411 * Returns a value of Hwr conversion ON/OFF. |
|
412 * |
|
413 * @since 3.2 |
|
414 * @return Value of KAknFepJapaneseHwrConversion value |
|
415 */ |
|
416 TInt JapaneseHwrConversion() const; |
|
417 |
|
418 /** |
|
419 * Set a value of Hwr conversion ON/OFF. |
|
420 * |
|
421 * @since 3.2 |
|
422 * @param aValue new value set to Hwr conversion ON/OFF shared data item which |
|
423 * represents the conversion ON/OFF currently being used |
|
424 */ |
|
425 void SetJapaneseHwrConversion(TInt aValue); |
|
426 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
427 /** |
|
428 * Queries the value of PredictiveText Typing Correction Level from shared data |
|
429 * |
|
430 * @return Typing Correction Level |
|
431 */ |
|
432 TInt PredictiveTextTypingCorrectionLevel(); |
|
433 |
|
434 |
|
435 /** |
|
436 * Sets the value of PredictiveText Typing Correction Level state to aCorrectionLevel in shared data |
|
437 */ |
|
438 void SetPredictiveTextTypingCorrectionLevel(TInt aCorrectionLevel); |
|
439 |
|
440 |
|
441 /** |
|
442 * Handles a change in predictive text Typing Correction Level setting. |
|
443 */ |
|
444 void HandlePredictiveTextTypingCorrectionLevelChange(); |
|
445 |
|
446 /** |
|
447 * Queries the value of PredictiveText Number Candidate Shown state to be On from shared data |
|
448 * |
|
449 * @return 1 for shown or 0 for not shown |
|
450 */ |
|
451 TInt PredictiveTextNumberCandidateShown(); |
|
452 |
|
453 |
|
454 /** |
|
455 * Sets the value of PredictiveText Number Candidate Shown state to 1 in shared data - this |
|
456 * is used to represent predictive text Number Candidate Shown being shown. |
|
457 */ |
|
458 void SetPredictiveTextNumberCandidateShown(); |
|
459 |
|
460 |
|
461 /** |
|
462 * Sets the value of PredictiveText Number Candidate Shown state to 0 in shared data - this |
|
463 * is used to represent predictive text Number Candidate Shown being not shown. |
|
464 */ |
|
465 void ResetPredictiveTextNumberCandidateShown(); |
|
466 |
|
467 |
|
468 /** |
|
469 * Handles a change in predictive text NumberCandidateShown setting. |
|
470 */ |
|
471 void HandlePredictiveTextNumberCandidateSettingChange(); |
|
472 |
|
473 /** |
|
474 * Queries the value of PredictiveText Primary candidate setting from shared data |
|
475 * |
|
476 * @return Primary candidate setting(0 for Exact or 1 for Suggested) |
|
477 */ |
|
478 TInt PredictiveTextPrimaryCandidate(); |
|
479 |
|
480 |
|
481 /** |
|
482 * Sets the value of PredictiveText Primary candidate setting state to aPrimaryCandidate in shared data |
|
483 */ |
|
484 void SetPredictiveTextPrimaryCandidate(TInt aPrimaryCandidate); |
|
485 |
|
486 |
|
487 /** |
|
488 * Handles a change in predictive text Primary candidate setting. |
|
489 */ |
|
490 void HandlePredictiveTextPrimaryCandidateChange(); |
|
491 #endif // RD_INTELLIGENT_TEXT_INPUT |
|
492 |
|
493 TInt FepShowFsqPreviewStatus(); |
|
494 |
|
495 void SetFepShowFsqPreviewStatus(TInt aValue); |
|
496 |
|
497 TInt FepShowVkbPreviewStatus(); |
|
498 |
|
499 void SetFepShowVkbPreviewStatus(TInt aValue); |
|
500 |
|
501 TInt FepLastUseVkbModeForLandscape(); |
|
502 |
|
503 void SetFepLastUseVkbModeForLandscape(TInt aValue); |
|
504 |
|
505 TBool AutoRotateEnabled(); |
|
506 #ifdef __ITI_LONGPRESS_NUM_SHIFT_COPYPASTE__ |
|
507 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
508 /** |
|
509 * Queries if numbers (and other characters found behind Fn) can be entered with long key press on QWERTY. |
|
510 */ |
|
511 TBool LongPressNumberEntryOnQwerty() const; |
|
512 /** |
|
513 * Queries if copy-pasting with shift+softkeys is available also on QWERTY. |
|
514 */ |
|
515 TBool ShiftCopyPastingOnQwerty() const; |
|
516 #endif // RD_INTELLIGENT_TEXT_INPUT |
|
517 #endif // __ITI_LONGPRESS_NUM_SHIFT_COPYPASTE__ |
|
518 #ifdef RD_SCALABLE_UI_V2 |
|
519 /** |
|
520 * Get a value of current default on screen vkb. |
|
521 * It depends on input lanage is PRC/HW/TW Chinese. |
|
522 * |
|
523 * @return Value of current default on screen vkb |
|
524 */ |
|
525 TInt DefaultOnScreenVKB(); |
|
526 #endif |
|
527 |
|
528 private: |
|
529 /** |
|
530 * C++ Constructor |
|
531 */ |
|
532 CAknFepSharedDataInterface(CAknFepManager* aFepManager); |
|
533 /** |
|
534 * Second phase constructor for this class |
|
535 */ |
|
536 void ConstructL(); |
|
537 |
|
538 private: |
|
539 |
|
540 /** |
|
541 * Handles a change in hash key selection setting |
|
542 */ |
|
543 static TInt HashKeySelectionNotification(TAny* aObj); |
|
544 |
|
545 /** |
|
546 * Handles a change in input mode from general settings |
|
547 */ |
|
548 static TInt InputModeChangeGSNotification(TAny* aObj); |
|
549 |
|
550 /** |
|
551 * Handles a change in input language from general settings |
|
552 */ |
|
553 static TInt InputTextLangGSNotification(TAny* aObj); |
|
554 |
|
555 /** |
|
556 * Handles a change in predictive text setting from general settings |
|
557 */ |
|
558 static TInt PredictiveTextSettingChangeGSNotification(TAny* aObj); |
|
559 #ifndef RD_INTELLIGENT_TEXT_INPUT |
|
560 |
|
561 /** |
|
562 * Handles a change in predictive text Auto Word Completion setting from general settings |
|
563 * Since 5.0 |
|
564 */ |
|
565 static TInt PredictiveTextAutoCompleteSettingChangeGSNotification(TAny* aObj); |
|
566 #endif // RD_PRED_AW_COMPLETION |
|
567 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
568 /** |
|
569 Handles the change in keyboard layout. |
|
570 */ |
|
571 void HandleKeyboardLayoutChange(); |
|
572 /** |
|
573 * Call back function to handle a change in keyboard layout. |
|
574 */ |
|
575 static TInt HandleKeyboardLayoutChangeNotification(TAny* aObj); |
|
576 #endif |
|
577 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
578 |
|
579 /** |
|
580 * Handles a change in predictive text Auto Word Completion setting from general settings |
|
581 * Since 3.2 |
|
582 */ |
|
583 static TInt PredictiveTextAutoCompleteSettingChangeGSNotification(TAny* aObj); |
|
584 #endif // RD_INTELLIGENT_TEXT_INPUT |
|
585 /** |
|
586 * Handles a change in Japanese predictive text setting from general settings |
|
587 */ |
|
588 static TInt JapanesePredictiveTextSettingChangeGSNotification(TAny* aObj); |
|
589 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
590 /** |
|
591 * Handles a change in predictive text Typing Correction Level setting. |
|
592 */ |
|
593 static TInt PredictiveTextTypingCorrectionLevelChangeNotification(TAny* aObj); |
|
594 |
|
595 /** |
|
596 * Handles a change in predictive text Number Candidate setting. |
|
597 */ |
|
598 static TInt PredictiveTextNumberCandidateSettingChangeNotification(TAny* aObj); |
|
599 |
|
600 /** |
|
601 * Handles a change in predictive text Primary Candidate setting. |
|
602 */ |
|
603 static TInt PredictiveTextPrimaryCandidateChangeNotification(TAny* aObj); |
|
604 #endif // RD_INTELLIGENT_TEXT_INPUT |
|
605 |
|
606 /** |
|
607 * Handles a change in qwerty input mode setting. |
|
608 */ |
|
609 static TInt QwertyModeChangeNotification(TAny* aObj); |
|
610 |
|
611 /** |
|
612 * Handles a change in hash key selection |
|
613 */ |
|
614 void HandleHashKeySelectionChange(); |
|
615 |
|
616 /** |
|
617 * Handles a change in input mode from general settings |
|
618 */ |
|
619 void HandleInputModeGSChange(); |
|
620 |
|
621 /** |
|
622 * Handles a change in input language from general settings |
|
623 */ |
|
624 void HandleInputTextLanguageGSChange(); |
|
625 |
|
626 /** |
|
627 * Handles a change in predictive text setting from general settings |
|
628 */ |
|
629 void HandlePredictiveTextSettingGSChange(); |
|
630 |
|
631 /** |
|
632 * Handles a change in Japanese predictive text setting from general settings |
|
633 */ |
|
634 void HandleJapanesePredictiveTextSettingGSChange(); |
|
635 |
|
636 /** |
|
637 * Call back function to handle a change in MultiTapTimer from general settings |
|
638 */ |
|
639 static TInt MultiTapTimerChangeGSNotification(TAny* aObj); |
|
640 /** |
|
641 * Handles a change in MultiTapTimer from general settings |
|
642 */ |
|
643 void HandleMultiTapTimerChangeGSNotification(); |
|
644 |
|
645 /** |
|
646 * Call back function to handle a change in Japanese Qwerty Flags from general settings |
|
647 */ |
|
648 static TInt JapaneseQwertyFlagsChangeGSNotification(TAny* aObj); |
|
649 /** |
|
650 * Handle change notification for Japanese Qwerty Flags. |
|
651 */ |
|
652 void HandleJapaneseQwertyFlagsChangeGSNotification(); |
|
653 |
|
654 /** |
|
655 * Handles a change in qwerty input mode setting. |
|
656 */ |
|
657 void HandleQwertyModeChangeNotification(); |
|
658 TInt NumberModeChangesGSNotification(); |
|
659 |
|
660 static TInt HandleRepositoryCallBack(TAny* aPtr); |
|
661 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
662 static TInt HandleGenericRepositoryChange(TAny* aPtr); |
|
663 #endif |
|
664 static TInt HandleLocaleRepositoryCallBack(TAny* aPtr); |
|
665 |
|
666 class CSubscriber : public CActive |
|
667 { |
|
668 public: |
|
669 CSubscriber(TCallBack aCallBack, RProperty& aProperty); |
|
670 ~CSubscriber(); |
|
671 |
|
672 public: // New functions |
|
673 void SubscribeL(); |
|
674 void StopSubscribe(); |
|
675 |
|
676 private: // from CActive |
|
677 void RunL(); |
|
678 void DoCancel(); |
|
679 |
|
680 private: |
|
681 TCallBack iCallBack; |
|
682 RProperty& iProperty; |
|
683 }; |
|
684 |
|
685 CSubscriber* iQwertyModeStatusSubscriber; |
|
686 RProperty iQwertyModeStatusProperty; |
|
687 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
688 CSubscriber* iKeyboardLayoutStatusSubscriber; |
|
689 RProperty iKeyboardLayoutStatusProperty; |
|
690 #endif |
|
691 |
|
692 friend class CSubscriber; |
|
693 |
|
694 private: |
|
695 CAknFepManager* iFepManager; //not owned |
|
696 |
|
697 CRepository* iCommonEngineRepository; |
|
698 CRepository* iAknFepRepository; |
|
699 CRepository* iGsPenSettings; //for global setting |
|
700 CRepository* iLocaleRepository; // locale related settings |
|
701 CRepository* iSensorRepository; |
|
702 CAknFepRepositoryWatcher* iAknFepRepositoryWatcher; |
|
703 CAknFepRepositoryWatcher* iAknFepLocaleRepositoryWatcher; |
|
704 |
|
705 TInt iSharedDataScrollLatinPredictive; |
|
706 TInt iSharedDataSpaceWithScrollRight; |
|
707 TInt iSharedDataEnterWithScrollDown; |
|
708 |
|
709 TInt iHashKeySelectionInUse; |
|
710 }; |
|
711 |
|
712 #endif |
|
713 |
|
714 // End of File |