|
1 /* |
|
2 * Copyright (c) 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: Implementation of the CSecModUIContainerCode class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "SecModUIContainerCode.h" |
|
21 #include "SecModUIModel.h" |
|
22 #include "SecModUILogger.h" |
|
23 #include "wim.hlp.hrh" |
|
24 #include <SecModUI.rsg> |
|
25 #include <aknlists.h> |
|
26 |
|
27 // ================= MEMBER FUNCTIONS ======================= |
|
28 |
|
29 // --------------------------------------------------------- |
|
30 // CSecModUIContainerCode::CSecModUIContainerCode( |
|
31 // CSecModUIModel& aModel) |
|
32 // Constructor |
|
33 // --------------------------------------------------------- |
|
34 // |
|
35 CSecModUIContainerCode::CSecModUIContainerCode(CSecModUIModel& aModel) |
|
36 :CSecModUIContainerBase(aModel, KSECMOD_HLP_CODE_VIEW) |
|
37 { |
|
38 } |
|
39 |
|
40 // Destructor |
|
41 CSecModUIContainerCode::~CSecModUIContainerCode() |
|
42 { |
|
43 LOG_ENTERFN( "CSecModUIContainerCode::~CSecModUIContainerCode" ); |
|
44 LOG_LEAVEFN( "CSecModUIContainerCode::~CSecModUIContainerCode" ); |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------- |
|
48 // CSecModUIContainerBase::CreateResourceReaderLC( |
|
49 // TResourceReader& aReader) |
|
50 // |
|
51 // --------------------------------------------------------- |
|
52 // |
|
53 void CSecModUIContainerCode::CreateResourceReaderLC(TResourceReader& aReader) |
|
54 { |
|
55 LOG_ENTERFN( "CSecModUIContainerCode::CreateResourceReaderLC" ); |
|
56 iEikonEnv->CreateResourceReaderLC(aReader, R_SECMODUI_CODES_LISTBOX); |
|
57 LOG_LEAVEFN( "CSecModUIContainerCode::CreateResourceReaderLC" ); |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------- |
|
61 // CSecModUIContainerCode::SetupListItemsL() |
|
62 // Setups list items to listbox. |
|
63 // --------------------------------------------------------- |
|
64 // |
|
65 void CSecModUIContainerCode::SetupListItemsL() |
|
66 { |
|
67 LOG_ENTERFN( "CSecModUIContainerCode::SetupListItemsL" ); |
|
68 CTextListBoxModel* model = iListBox->Model(); |
|
69 //model->SetOwnershipType( |
|
70 CDesCArray* itemArray = STATIC_CAST(CDesCArray*, model->ItemTextArray()); |
|
71 iModel.CheckCodeViewStringsL(*itemArray); |
|
72 LOG_LEAVEFN( "CSecModUIContainerCode::SetupListItemsL" ); |
|
73 } |
|
74 |
|
75 // End of File |