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 );
|
|
587 |
private:
|
|
588 |
/**
|
|
589 |
* C++ Constructor
|
|
590 |
*/
|
|
591 |
CAknFepSharedDataInterface(CAknFepManager* aFepManager);
|
|
592 |
/**
|
|
593 |
* Second phase constructor for this class
|
|
594 |
*/
|
|
595 |
void ConstructL();
|
|
596 |
|
|
597 |
private:
|
|
598 |
|
|
599 |
/**
|
|
600 |
* Handles a change in hash key selection setting
|
|
601 |
*/
|
|
602 |
static TInt HashKeySelectionNotification(TAny* aObj);
|
|
603 |
|
|
604 |
/**
|
|
605 |
* Handles a change in input mode from general settings
|
|
606 |
*/
|
|
607 |
static TInt InputModeChangeGSNotification(TAny* aObj);
|
|
608 |
|
|
609 |
/**
|
|
610 |
* Handles a change in input language from general settings
|
|
611 |
*/
|
|
612 |
static TInt InputTextLangGSNotification(TAny* aObj);
|
|
613 |
|
|
614 |
/**
|
|
615 |
* Handles a change in predictive text setting from general settings
|
|
616 |
*/
|
|
617 |
static TInt PredictiveTextSettingChangeGSNotification(TAny* aObj);
|
|
618 |
#ifndef RD_INTELLIGENT_TEXT_INPUT
|
|
619 |
|
|
620 |
/**
|
|
621 |
* Handles a change in predictive text Auto Word Completion setting from general settings
|
|
622 |
* Since 5.0
|
|
623 |
*/
|
|
624 |
static TInt PredictiveTextAutoCompleteSettingChangeGSNotification(TAny* aObj);
|
|
625 |
#endif // RD_PRED_AW_COMPLETION
|
|
626 |
#ifdef RD_INTELLIGENT_TEXT_INPUT
|
|
627 |
/**
|
|
628 |
Handles the change in keyboard layout.
|
|
629 |
*/
|
|
630 |
void HandleKeyboardLayoutChange();
|
|
631 |
/**
|
|
632 |
* Call back function to handle a change in keyboard layout.
|
|
633 |
*/
|
|
634 |
static TInt HandleKeyboardLayoutChangeNotification(TAny* aObj);
|
|
635 |
|
|
636 |
#ifdef RD_SCALABLE_UI_V2
|
|
637 |
/**
|
|
638 |
Handles the change to virtual keyboard layout.
|
|
639 |
*/
|
|
640 |
void HandleVirtualKeyboardLayoutChange();
|
|
641 |
|
|
642 |
/**
|
|
643 |
* Call back function to handle a change to virtual keyboard layout.
|
|
644 |
*/
|
|
645 |
static TInt HandleVirtualKeyboardLayoutChangeNotification(TAny* aObj);
|
|
646 |
#endif // RD_SCALABLE_UI_V2
|
|
647 |
|
|
648 |
#endif
|
|
649 |
#ifdef RD_INTELLIGENT_TEXT_INPUT
|
|
650 |
|
|
651 |
/**
|
|
652 |
* Handles a change in predictive text Auto Word Completion setting from general settings
|
|
653 |
* Since 3.2
|
|
654 |
*/
|
|
655 |
static TInt PredictiveTextAutoCompleteSettingChangeGSNotification(TAny* aObj);
|
|
656 |
#endif // RD_INTELLIGENT_TEXT_INPUT
|
|
657 |
/**
|
|
658 |
* Handles a change in Japanese predictive text setting from general settings
|
|
659 |
*/
|
|
660 |
static TInt JapanesePredictiveTextSettingChangeGSNotification(TAny* aObj);
|
|
661 |
#ifdef RD_INTELLIGENT_TEXT_INPUT
|
|
662 |
/**
|
|
663 |
* Handles a change in predictive text Typing Correction Level setting.
|
|
664 |
*/
|
|
665 |
static TInt PredictiveTextTypingCorrectionLevelChangeNotification(TAny* aObj);
|
|
666 |
|
|
667 |
/**
|
|
668 |
* Handles a change in predictive text Number Candidate setting.
|
|
669 |
*/
|
|
670 |
static TInt PredictiveTextNumberCandidateSettingChangeNotification(TAny* aObj);
|
|
671 |
|
|
672 |
/**
|
|
673 |
* Handles a change in predictive text Primary Candidate setting.
|
|
674 |
*/
|
|
675 |
static TInt PredictiveTextPrimaryCandidateChangeNotification(TAny* aObj);
|
|
676 |
#endif // RD_INTELLIGENT_TEXT_INPUT
|
|
677 |
|
|
678 |
/**
|
|
679 |
* Handles a change in qwerty input mode setting.
|
|
680 |
*/
|
|
681 |
static TInt QwertyModeChangeNotification(TAny* aObj);
|
|
682 |
|
|
683 |
/**
|
|
684 |
* Handles a change in hash key selection
|
|
685 |
*/
|
|
686 |
void HandleHashKeySelectionChange();
|
|
687 |
|
|
688 |
/**
|
|
689 |
* Handles a change in input mode from general settings
|
|
690 |
*/
|
|
691 |
void HandleInputModeGSChange();
|
|
692 |
|
|
693 |
/**
|
|
694 |
* Handles a change in input language from general settings
|
|
695 |
*/
|
|
696 |
void HandleInputTextLanguageGSChange();
|
|
697 |
|
|
698 |
/**
|
|
699 |
* Handles a change in predictive text setting from general settings
|
|
700 |
*/
|
|
701 |
void HandlePredictiveTextSettingGSChange();
|
|
702 |
|
|
703 |
/**
|
|
704 |
* Handles a change in Japanese predictive text setting from general settings
|
|
705 |
*/
|
|
706 |
void HandleJapanesePredictiveTextSettingGSChange();
|
|
707 |
|
|
708 |
/**
|
|
709 |
* Call back function to handle a change in MultiTapTimer from general settings
|
|
710 |
*/
|
|
711 |
static TInt MultiTapTimerChangeGSNotification(TAny* aObj);
|
|
712 |
/**
|
|
713 |
* Handles a change in MultiTapTimer from general settings
|
|
714 |
*/
|
|
715 |
void HandleMultiTapTimerChangeGSNotification();
|
|
716 |
|
|
717 |
/**
|
|
718 |
* Call back function to handle a change in Japanese Qwerty Flags from general settings
|
|
719 |
*/
|
|
720 |
static TInt JapaneseQwertyFlagsChangeGSNotification(TAny* aObj);
|
|
721 |
/**
|
|
722 |
* Handle change notification for Japanese Qwerty Flags.
|
|
723 |
*/
|
|
724 |
void HandleJapaneseQwertyFlagsChangeGSNotification();
|
|
725 |
|
|
726 |
/**
|
|
727 |
* Handles a change in qwerty input mode setting.
|
|
728 |
*/
|
|
729 |
void HandleQwertyModeChangeNotification();
|
|
730 |
TInt NumberModeChangesGSNotification();
|
|
731 |
|
|
732 |
static TInt HandleRepositoryCallBack(TAny* aPtr);
|
|
733 |
#ifdef RD_INTELLIGENT_TEXT_INPUT
|
|
734 |
static TInt HandleGenericRepositoryChange(TAny* aPtr);
|
|
735 |
TPtiKeyboardType ActiveKeyboardType() const;
|
|
736 |
#endif
|
|
737 |
static TInt HandleLocaleRepositoryCallBack(TAny* aPtr);
|
|
738 |
|
|
739 |
class CSubscriber : public CActive
|
|
740 |
{
|
|
741 |
public:
|
|
742 |
CSubscriber(TCallBack aCallBack, RProperty& aProperty);
|
|
743 |
~CSubscriber();
|
|
744 |
|
|
745 |
public: // New functions
|
|
746 |
void SubscribeL();
|
|
747 |
void StopSubscribe();
|
|
748 |
|
|
749 |
private: // from CActive
|
|
750 |
void RunL();
|
|
751 |
void DoCancel();
|
|
752 |
|
|
753 |
private:
|
|
754 |
TCallBack iCallBack;
|
|
755 |
RProperty& iProperty;
|
|
756 |
};
|
|
757 |
|
|
758 |
CSubscriber* iQwertyModeStatusSubscriber;
|
|
759 |
RProperty iQwertyModeStatusProperty;
|
|
760 |
#ifdef RD_INTELLIGENT_TEXT_INPUT
|
|
761 |
CSubscriber* iKeyboardLayoutStatusSubscriber;
|
|
762 |
RProperty iKeyboardLayoutStatusProperty;
|
|
763 |
#ifdef RD_SCALABLE_UI_V2
|
|
764 |
CSubscriber* iVirtualKeyboardLayoutStatusSubscriber;
|
|
765 |
RProperty iVirtualKeyboardLayoutStatusProperty;
|
|
766 |
#endif // #ifdef RD_SCALABLE_UI_V2
|
|
767 |
#endif
|
|
768 |
|
|
769 |
friend class CSubscriber;
|
|
770 |
|
|
771 |
private:
|
|
772 |
CAknFepManager* iFepManager; //not owned
|
|
773 |
|
|
774 |
CRepository* iCommonEngineRepository;
|
|
775 |
CRepository* iAknFepRepository;
|
|
776 |
CRepository* iGsPenSettings; //for global setting
|
|
777 |
CRepository* iLocaleRepository; // locale related settings
|
|
778 |
CRepository* iSensorRepository;
|
|
779 |
CRepository* iThemeEffectsRepository;//transition effects
|
|
780 |
CAknFepRepositoryWatcher* iAknFepRepositoryWatcher;
|
|
781 |
CAknFepRepositoryWatcher* iAknFepLocaleRepositoryWatcher;
|
|
782 |
|
|
783 |
TInt iSharedDataScrollLatinPredictive;
|
|
784 |
TInt iSharedDataSpaceWithScrollRight;
|
|
785 |
TInt iSharedDataEnterWithScrollDown;
|
|
786 |
|
|
787 |
TInt iHashKeySelectionInUse;
|
|
788 |
};
|
|
789 |
|
|
790 |
#endif
|
|
791 |
|
|
792 |
// End of File
|