1 /* |
|
2 * Copyright (c) 2009 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 #ifndef __AKNFEPDUALLANGUAGESETTINGMODEL_H_ |
|
28 #define __AKNFEPDUALLANGUAGESETTINGMODEL_H_ |
|
29 |
|
30 #include <e32base.h> |
|
31 #include <BADESCA.H> //CDesCArray |
|
32 #include <coemain.h> //For CCoeEnv |
|
33 #include <centralrepository.h> |
|
34 |
|
35 class CAknFepDualLanguageSettingModel : public CBase |
|
36 { |
|
37 public: |
|
38 static CAknFepDualLanguageSettingModel* NewL(); |
|
39 enum TLanguageType |
|
40 { |
|
41 // Writing language |
|
42 EAknFepDualLanguageSettingInputLanguage, |
|
43 // Secondary writing language |
|
44 EAknFepDualLanguageSettingInputLanguageSecondary |
|
45 }; |
|
46 void GetSecondaryInputLanguagesL( |
|
47 CArrayFix<TInt>* aSeedLanguages, |
|
48 CDesCArray* aLanguageNames, |
|
49 CCoeEnv* aCoeEnv); |
|
50 void ShowDualInputLanguageSettingListL(CCoeEnv* aCoeEnv); |
|
51 |
|
52 void GetLanguagesFromPtiL( |
|
53 CArrayFix<TInt>* aInstalledLangCodes, |
|
54 CArrayFix<TInt>* aSeedLanguages, |
|
55 CDesCArray* aLanguageNames ); |
|
56 TInt LanguageL( TLanguageType aType ); |
|
57 TBool SetLanguageL( TLanguageType aType, TInt aLanguage ); |
|
58 |
|
59 /* |
|
60 * Returns Bool value according to predictive dictionary availability. |
|
61 * PTI Engine used for lang avaibility retrieving |
|
62 * @return ETrue: no errors |
|
63 * EFalse: an error has occurred |
|
64 * @since 2.6 |
|
65 */ |
|
66 TBool CheckDictionaryFromPtiL(TInt aLangCode ); |
|
67 ~CAknFepDualLanguageSettingModel(); |
|
68 private: |
|
69 CAknFepDualLanguageSettingModel(){}; |
|
70 void ConstructL(); |
|
71 private: |
|
72 CRepository* iAknFepRepository; |
|
73 }; |
|
74 #endif //__AKNFEPDUALLANGUAGESETTINGMODEL_H_ |
|