os/security/cryptoservices/filebasedcertificateandkeystores/test/certtool/certtool_engine.h
First public contribution.
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef __CERTTOOL_ENGINE_H_
20 #define __CERTTOOL_ENGINE_H_
23 #include <unifiedcertstore.h>
25 #include "certtool_commands.h"
26 #include "keytool_commands.h"
28 class CCertToolController;
30 class CCertToolEngine : public CActive
33 static CCertToolEngine* NewLC(CCertToolController* aController);
34 static CCertToolEngine* NewL(CCertToolController* aController);
38 public: // Actual commands
39 void ListL(CKeyToolParameters* aParam);
40 void ImportPrivateL(CKeyToolParameters* aParam);
41 void RemovePrivateL(CKeyToolParameters* aParam);
42 void ImportL(CKeyToolParameters* aParam);
43 void RemoveL(CKeyToolParameters* aParam);
44 void SetAppsL(CKeyToolParameters* aParam);
45 void ListStoresL(CKeyToolParameters* aParam);
46 void AddAppsL(CKeyToolParameters* aParam);
47 void RemoveAppsL(CKeyToolParameters* aParam);
48 void DisplayUsageL(CKeyToolParameters* aParam);
49 void SetManagerPolicyL(CKeyToolParameters* aParam);
51 public: // From CActive
54 TInt RunError(TInt aError);
57 CCertToolEngine(CCertToolController* aController);
58 void SetupUidCommandL(CKeyToolParameters* aParam);
80 CCertToolCommand* iHandler;
81 CKeyToolParameters* iParam;
82 CCertToolController* iController;
85 CUnifiedCertStore* iCertStore;
88 CUnifiedKeyStore* iKeyStore;
89 CKeyToolCommand* iKeyHandler;
90 CKeyToolController* iKeyController;
92 CActiveScheduler* iScheduler;