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