1 /* |
|
2 * Copyright (c) 2002 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: Implementation of CAccessPointTextSettingPage. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 |
|
21 |
|
22 #include "AccessPointTextSettingPage.h" |
|
23 #include <akntextsettingpage.h> |
|
24 |
|
25 #include <AknInputLanguageInfo.h> // for AVKON ELAF |
|
26 #include <featmgr.h> |
|
27 #include "ApSettingsHandlerLogger.h" |
|
28 |
|
29 // ================= MEMBER FUNCTIONS ======================= |
|
30 |
|
31 |
|
32 // --------------------------------------------------------- |
|
33 // CAccessPointTextSettingPage::CAccessPointTextSettingPage |
|
34 // --------------------------------------------------------- |
|
35 // |
|
36 CAccessPointTextSettingPage::CAccessPointTextSettingPage |
|
37 ( TInt aResourceID, |
|
38 TDes& aText, |
|
39 TInt aTextSettingPageFlags, |
|
40 TBool aIsLatin ) |
|
41 :CAknTextSettingPage( aResourceID, aText, aTextSettingPageFlags ) |
|
42 { |
|
43 APSETUILOGGER_ENTERFN( EOther,"TxtSetPage::CAccessPointTextSettingPage<->") |
|
44 iIsLatin = aIsLatin; |
|
45 } |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 // --------------------------------------------------------- |
|
51 // CAccessPointTextSettingPage::CAccessPointTextSettingPage |
|
52 // --------------------------------------------------------- |
|
53 // |
|
54 CAccessPointTextSettingPage::CAccessPointTextSettingPage |
|
55 ( const TDesC* aSettingTitleText, |
|
56 TInt aSettingNumber, |
|
57 TInt aControlType, |
|
58 TInt aEditorResourceId, |
|
59 TInt aSettingPageResourceId, |
|
60 TDes& aText, |
|
61 TInt aTextSettingPageFlags, |
|
62 TBool aIsLatin ) |
|
63 :CAknTextSettingPage( aSettingTitleText, aSettingNumber, aControlType, |
|
64 aEditorResourceId, aSettingPageResourceId, aText, aTextSettingPageFlags ) |
|
65 { |
|
66 APSETUILOGGER_ENTERFN( EOther,"TxtSetPage::CAccessPointTextSettingPage<->") |
|
67 iIsLatin = aIsLatin; |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------- |
|
71 // CAccessPointTextSettingPage::ConstructL |
|
72 // --------------------------------------------------------- |
|
73 // |
|
74 void CAccessPointTextSettingPage::ConstructL() |
|
75 { |
|
76 APSETUILOGGER_ENTERFN( EOther,"TxtSetPage::ConstructL") |
|
77 |
|
78 CAknTextSettingPage::ConstructL(); |
|
79 FeatureManager::InitializeLibL(); |
|
80 TBool avkonElaf = FeatureManager::FeatureSupported( KFeatureIdAvkonELaf ); |
|
81 FeatureManager::UnInitializeLib(); |
|
82 if ( avkonElaf && iIsLatin ) |
|
83 { |
|
84 CAknInputLanguageInfo* inputLangInfo = |
|
85 AknInputLanguageInfoFactory::CreateInputLanguageInfoL(); |
|
86 TextControl()->SetAknEditorLocalLanguage |
|
87 ( inputLangInfo->UrlLanguage() ); |
|
88 delete inputLangInfo; |
|
89 } |
|
90 |
|
91 APSETUILOGGER_LEAVEFN( EOther,"TxtSetPage::ConstructL") |
|
92 } |
|
93 |
|
94 // End of File |
|