1 /* |
|
2 * Copyright (c) 2001-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 the License "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 CWEPKeyDataTextSettingPage. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: tr1cfwln#11 % |
|
20 */ |
|
21 |
|
22 // INCLUDE FILES |
|
23 |
|
24 //#include <fepbase.h> |
|
25 |
|
26 #include <WEPSecuritySettingsUI.rsg> |
|
27 |
|
28 #include "WepKeyDataTextSettingPage.h" |
|
29 |
|
30 |
|
31 |
|
32 // ================= MEMBER FUNCTIONS ======================= |
|
33 |
|
34 // --------------------------------------------------------- |
|
35 // CWEPKeyDataTextSettingPage::CWEPKeyDataTextSettingPage |
|
36 // --------------------------------------------------------- |
|
37 // |
|
38 CWEPKeyDataTextSettingPage::CWEPKeyDataTextSettingPage( TDes& aText, |
|
39 TInt aMaxLength, |
|
40 CWEPSecuritySettings::TWEPKeyFormat aWEPKeyFormat ) |
|
41 :CAknTextSettingPage( R_TEXT_SETTING_PAGE_KEY_DATA, aText, |
|
42 EAknSettingPageNoOrdinalDisplayed ), |
|
43 iLengthOfKeyData( aMaxLength ), |
|
44 iWEPKeyFormat( aWEPKeyFormat ) |
|
45 { |
|
46 } |
|
47 |
|
48 |
|
49 |
|
50 // --------------------------------------------------------- |
|
51 // CWEPKeyDataTextSettingPage::ConstructL |
|
52 // --------------------------------------------------------- |
|
53 // |
|
54 void CWEPKeyDataTextSettingPage::ConstructL() |
|
55 { |
|
56 CAknTextSettingPage::ConstructL(); |
|
57 |
|
58 CEikEdwin* editor = TextControl(); |
|
59 |
|
60 editor->SetMaxLength( iLengthOfKeyData ); |
|
61 |
|
62 if ( iWEPKeyFormat == CWEPSecuritySettings::EAscii ) |
|
63 { |
|
64 editor->SetOnlyASCIIChars( ETrue ); |
|
65 editor->SetAknEditorCase( EAknEditorLowerCase ); |
|
66 } |
|
67 else |
|
68 { |
|
69 editor->SetAknEditorCase( EAknEditorUpperCase ); |
|
70 editor->SetAknEditorSpecialCharacterTable( 0 ); |
|
71 } |
|
72 } |
|
73 |
|
74 |
|
75 // End of File |
|