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