|
1 /* |
|
2 * Copyright (c) 2003-2007 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: Declaration of the CCertManUIViewTrust class. |
|
15 * Updates Options list depending on the status of the |
|
16 * trusted clients (unavailable, located in WIM). |
|
17 * Handles Softkey and Options list commands. |
|
18 * Calls ChangeTrust method in CertManUIContainerTrust. |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef CERTMANUIVIEWTRUST_H |
|
24 #define CERTMANUIVIEWTRUST_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <aknview.h> |
|
28 |
|
29 // FORWARD DECLERATIONS |
|
30 class CCertManUIContainerTrust; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CCertManUIViewTrust view class. |
|
36 * |
|
37 * @lib certmanui.dll |
|
38 */ |
|
39 NONSHARABLE_CLASS( CCertManUIViewTrust ): public CAknView |
|
40 { |
|
41 public: // functions |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 ~CCertManUIViewTrust(); |
|
47 |
|
48 /** |
|
49 * NewL |
|
50 */ |
|
51 static class CCertManUIViewTrust* NewL( const TRect& aRect, CCertManUIKeeper& aKeeper ); |
|
52 |
|
53 /** |
|
54 * NewLC |
|
55 */ |
|
56 static class CCertManUIViewTrust* NewLC( const TRect& aRect, CCertManUIKeeper& aKeeper ); |
|
57 |
|
58 /** |
|
59 * Returns Trust view id |
|
60 */ |
|
61 TUid Id() const; |
|
62 |
|
63 /** |
|
64 * Handles ClientRectChange |
|
65 */ |
|
66 void HandleClientRectChange(); |
|
67 |
|
68 /** |
|
69 * Returns iContainerTrust to be used in CertManUIContainerTrust |
|
70 */ |
|
71 CCoeControl* Container(); |
|
72 |
|
73 /** |
|
74 * Handles Softkey and Options list commands |
|
75 */ |
|
76 void HandleCommandL( TInt aCommand ); |
|
77 |
|
78 /** |
|
79 * Calls Change trust method UpdateTrustSettingsViewL in certmanuicontainertrust |
|
80 * for not supported certificate formats ECrX968Certificate and ECrCertificateURL |
|
81 * and for not supported certificate locations ECrCertLocationWIMCard, ECrCertLocationWIMURL, |
|
82 * ECrCertLocationPhoneMemory, ECrCertLocationPhoneMemoryURL UpdateTrustSettingsViewL is not called |
|
83 * also UpdateTrustSettingsViewL is not called if there are no clients in Trust view |
|
84 */ |
|
85 void ChangeTrustL(); |
|
86 |
|
87 /** |
|
88 * Shows Trust Change Setting page |
|
89 */ |
|
90 void PopupTrustChangeSettingPageL(); |
|
91 |
|
92 /** |
|
93 * Updates the view when opening it |
|
94 */ |
|
95 void DoActivateL( const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
96 const TDesC8& aCustomMessage ); |
|
97 |
|
98 /** |
|
99 * Updates the menu bar |
|
100 */ |
|
101 void UpdateMenuBar(); |
|
102 |
|
103 /** |
|
104 * Updates navi pane |
|
105 */ |
|
106 void UpdateNaviPaneL(); |
|
107 |
|
108 /** |
|
109 * Removes navi pane |
|
110 */ |
|
111 void RemoveNaviPane(); |
|
112 |
|
113 public: // data |
|
114 |
|
115 /** |
|
116 * To get hold of CertManUIKeeper |
|
117 */ |
|
118 CCertManUIKeeper& iKeeper; |
|
119 |
|
120 /** |
|
121 * To get access to Trust container |
|
122 * Changed from private to public so that Change Trust's CAknRadioButtonSettingPage can access it |
|
123 */ |
|
124 CCertManUIContainerTrust* iContainerTrust; |
|
125 |
|
126 private: // functions |
|
127 |
|
128 /** |
|
129 * Constructor. |
|
130 */ |
|
131 CCertManUIViewTrust( CCertManUIKeeper& aKeeper ); |
|
132 |
|
133 /** |
|
134 * EPOC default constructor. |
|
135 */ |
|
136 void ConstructL(); |
|
137 |
|
138 |
|
139 /** |
|
140 * Closes the view |
|
141 */ |
|
142 void DoDeactivate(); |
|
143 |
|
144 /** |
|
145 * Updates Options list with correct items depending on |
|
146 * whether the listbox is empty or if the trust can be changed |
|
147 * Change trust is not shown if certificate location is not supported |
|
148 * unsupported certificate locations are ECrCertLocationWIMCard, |
|
149 * ECrCertLocationWIMURL, |
|
150 * ECrCertLocationPhoneMemory, |
|
151 * ECrCertLocationPhoneMemoryURL |
|
152 * Change trust is not shown if certificate format is not supported |
|
153 * unsupported certificate formats are ECrX968Certificate |
|
154 * ECrCertificateURL |
|
155 */ |
|
156 void DynInitMenuPaneL( TInt aResourceId,CEikMenuPane* aMenuPane ); |
|
157 |
|
158 private: // Data |
|
159 |
|
160 /** |
|
161 * For Navipane |
|
162 */ |
|
163 CAknNavigationDecorator* iTrustSettingsNaviPane; |
|
164 |
|
165 /** |
|
166 * For Navi container |
|
167 */ |
|
168 CAknNavigationControlContainer* iNaviPane; |
|
169 |
|
170 }; |
|
171 |
|
172 #endif // CERTMANUIVIEWTRUST_H |
|
173 |
|
174 // End of File |