|
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 CSecModUIContainerAccess class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "SecModUIContainerAccess.h" |
|
21 #include "SecModUIModel.h" |
|
22 #include "wim.hlp.hrh" |
|
23 #include <SecModUI.rsg> |
|
24 #include <aknlists.h> |
|
25 |
|
26 // ================= MEMBER FUNCTIONS ======================= |
|
27 |
|
28 // --------------------------------------------------------- |
|
29 // CSecModUIContainerAccess::CSecModUIContainerAccess( |
|
30 // CSecModUIModel& aModel) |
|
31 // Constructor |
|
32 // --------------------------------------------------------- |
|
33 // |
|
34 CSecModUIContainerAccess::CSecModUIContainerAccess(CSecModUIModel& aModel, CSecModUIViewAccess* aView) |
|
35 :CSecModUIContainerBase(aModel, KSECMOD_HLP_ACCESSCODE_VIEW) |
|
36 { |
|
37 iView = aView; |
|
38 } |
|
39 |
|
40 // Destructor |
|
41 CSecModUIContainerAccess::~CSecModUIContainerAccess() |
|
42 { |
|
43 } |
|
44 |
|
45 // --------------------------------------------------------- |
|
46 // CSecModUIContainerSignature::ConstructListL() |
|
47 // Constructs listbox |
|
48 // --------------------------------------------------------- |
|
49 // |
|
50 void CSecModUIContainerAccess::ConstructListL() |
|
51 { |
|
52 iListBox = new (ELeave) CAknSettingStyleListBox(); |
|
53 iListBox->SetObserver(this); |
|
54 } |
|
55 |
|
56 |
|
57 // --------------------------------------------------------- |
|
58 // CSecModUIContainerAccess::SetupListItemsL() |
|
59 // Setups list items to listbox. |
|
60 // --------------------------------------------------------- |
|
61 // |
|
62 void CSecModUIContainerAccess::SetupListItemsL() |
|
63 { |
|
64 iModel.LoadPinGItemsL(*iListBox); |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------- |
|
68 // CSecModUIContainerAccess::HandleControlEventL() |
|
69 // Notify the highlight move event |
|
70 // --------------------------------------------------------- |
|
71 // |
|
72 void CSecModUIContainerAccess::HandleControlEventL(CCoeControl* /*aControl*/, |
|
73 TCoeEvent aEventType) |
|
74 { |
|
75 if( aEventType == EEventStateChanged ) |
|
76 { |
|
77 iView->UpdateCbaL(); |
|
78 } |
|
79 } |
|
80 |
|
81 // End of File |