|
1 /* |
|
2 * Copyright (c) 2004-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CONTROLLER_H_ |
|
20 #define __CONTROLLER_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <barsc.h> |
|
24 #include <mctkeystore.h> |
|
25 #include <x509cert.h> |
|
26 #include <wtlscert.h> |
|
27 #include <cctcertinfo.h> |
|
28 #include <e32cons.h> |
|
29 |
|
30 #include "keytool_view.h" |
|
31 |
|
32 |
|
33 class CController : public CBase |
|
34 { |
|
35 public: |
|
36 void DisplayErrorL(const TDesC& aError, TInt aErrorCode, TBool aPageWise); |
|
37 void DisplayErrorL(const TDesC& aError, TBool aPageWise); |
|
38 void DisplayLocalisedMsgL(TInt aResourceId); |
|
39 void DisplayLocalisedMsgL(TInt aResourceId, TInt aErrorCode); |
|
40 |
|
41 void DisplayKeyL(CCTKeyInfo& aKey, TBool aIsDetailed, TBool aPageWise); |
|
42 |
|
43 void DisplayCertL(CCTCertInfo& aCert, CCertificate& aCertificate, RUidArray aApps, TBool aIsDetailed, TBool aPageWise); |
|
44 |
|
45 ~CController(); |
|
46 MKeyToolView& GetView(); |
|
47 |
|
48 protected: |
|
49 CController(MKeyToolView& aView); |
|
50 |
|
51 protected: |
|
52 MKeyToolView& iView; |
|
53 RFs iFsSession; |
|
54 RResourceFile iResourceFile; |
|
55 }; |
|
56 |
|
57 #endif |