cryptoservices/filebasedcertificateandkeystores/test/certtool/certtool_controller.h
equal
deleted
inserted
replaced
|
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 __CERTTOOL_CONTROLLER_H_ |
|
20 #define __CERTTOOL_CONTROLLER_H_ |
|
21 |
|
22 #include <f32file.h> |
|
23 #include <barsc.h> |
|
24 #include <x509cert.h> |
|
25 #include <wtlscert.h> |
|
26 #include <cctcertinfo.h> |
|
27 |
|
28 #include "certtool_defcontroller.h" |
|
29 #include "certtool_engine.h" |
|
30 #include "keytool_view.h" |
|
31 #include "controller.h" |
|
32 |
|
33 class CKeyToolParameters; |
|
34 |
|
35 /** |
|
36 * The controller in the MVC pattern for the Symbian OS certtool. |
|
37 */ |
|
38 class CCertToolController : public CController, public CertToolDefController |
|
39 { |
|
40 public: |
|
41 static CCertToolController* NewLC(MKeyToolView& aView); |
|
42 |
|
43 ~CCertToolController(); |
|
44 |
|
45 /** |
|
46 * Given a command code it delegates to the proper handler. |
|
47 * |
|
48 * @param aCommand The command code to be executed. |
|
49 */ |
|
50 void HandleCommandL(TInt aCommand, CKeyToolParameters* aParam); |
|
51 |
|
52 protected: |
|
53 void ConstructL(); |
|
54 |
|
55 private: |
|
56 CCertToolController(MKeyToolView& aView); |
|
57 |
|
58 protected: |
|
59 CCertToolEngine* iEngine; |
|
60 }; |
|
61 |
|
62 #endif //__CERTTOOL_CONTROLLER_H_ |