|
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 CCertManUIViewMain class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CERTMANUIVIEWMAIN_H |
|
20 #define CERTMANUIVIEWMAIN_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknview.h> |
|
24 #include <e32base.h> |
|
25 #include "Certmanuiviewid.h" |
|
26 |
|
27 // FORWARD DECLERATIONS |
|
28 class CCrCertificate; |
|
29 class CCertificate; |
|
30 class CX509Certificate; |
|
31 class CCertManUIContainerMain; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CCertManUIViewMain view class. |
|
37 * |
|
38 * @lib certmanui.dll |
|
39 */ |
|
40 NONSHARABLE_CLASS( CCertManUIViewMain ): public CAknView |
|
41 { |
|
42 public: // functions |
|
43 |
|
44 /** |
|
45 * Destructor |
|
46 */ |
|
47 ~CCertManUIViewMain(); |
|
48 |
|
49 /** |
|
50 * NewL |
|
51 */ |
|
52 static class CCertManUIViewMain* NewL( const TRect& aRect, CCertManUIKeeper& aKeeper ); |
|
53 |
|
54 /** |
|
55 * NewLC |
|
56 */ |
|
57 static class CCertManUIViewMain* NewLC( const TRect& aRect, CCertManUIKeeper& aKeeper ); |
|
58 |
|
59 /** |
|
60 * Returns Authority view id |
|
61 */ |
|
62 TUid Id() const; |
|
63 |
|
64 /** |
|
65 * Handles ClientRectChange |
|
66 */ |
|
67 void HandleClientRectChange(); |
|
68 |
|
69 /** |
|
70 * Returns iContainerAuthority to be used in CertManUIContainerAuthority |
|
71 */ |
|
72 CCoeControl* Container(); |
|
73 |
|
74 /** |
|
75 * Handles Softkey and Options list commands |
|
76 */ |
|
77 void HandleCommandL( TInt aCommand ); |
|
78 |
|
79 /** |
|
80 * Updates the view when opening it |
|
81 */ |
|
82 void DoActivateL( const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
83 const TDesC8& aCustomMessage ); |
|
84 |
|
85 public: // data |
|
86 |
|
87 /** |
|
88 * To get hold of CertManUIKeeper |
|
89 */ |
|
90 CCertManUIKeeper& iKeeper; |
|
91 |
|
92 /** |
|
93 * To get access to certificate list in authority view |
|
94 */ |
|
95 CCertManUIContainerMain* iContainerMain; |
|
96 |
|
97 /** |
|
98 * To store the position of the focus in the Authority view |
|
99 */ |
|
100 TInt iCurrentPosition; |
|
101 |
|
102 /** |
|
103 * Stores top item in the listbox |
|
104 */ |
|
105 TInt iTopItem; |
|
106 |
|
107 private: // functions |
|
108 |
|
109 /** |
|
110 * Constructor. |
|
111 */ |
|
112 CCertManUIViewMain( CCertManUIKeeper& aKeeper ); |
|
113 |
|
114 /** |
|
115 * EPOC default constructor. |
|
116 */ |
|
117 void ConstructL(); |
|
118 |
|
119 |
|
120 /** |
|
121 * Saves focus position when closing view |
|
122 */ |
|
123 void DoDeactivate(); |
|
124 |
|
125 /** |
|
126 * Appends a field that has string from resources and string from CertManAPI |
|
127 * to the details view message body |
|
128 */ |
|
129 void DetailsFieldDynamicL( HBufC& aMessage, TPtrC aValue, |
|
130 TInt aResourceOne, TInt aResourceTwo ); |
|
131 |
|
132 /** |
|
133 * Updates Options list with correct items depending on |
|
134 * whether the listbox is empty or if it has any marked items |
|
135 */ |
|
136 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
137 |
|
138 |
|
139 private: // Data |
|
140 |
|
141 /** |
|
142 * To get the certificate location |
|
143 */ |
|
144 CCertManUIContainerMain* iContainerPersonal; |
|
145 }; |
|
146 |
|
147 #endif // CERTMANUIVIEWMAIN_H |
|
148 |
|
149 // End of File |