author | sl@SLION-WIN7.fritz.box |
Fri, 15 Jun 2012 03:10:57 +0200 | |
changeset 0 | bde4ae8d615e |
permissions | -rw-r--r-- |
sl@0 | 1 |
/* |
sl@0 | 2 |
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
sl@0 | 3 |
* All rights reserved. |
sl@0 | 4 |
* This component and the accompanying materials are made available |
sl@0 | 5 |
* under the terms of the License "Eclipse Public License v1.0" |
sl@0 | 6 |
* which accompanies this distribution, and is available |
sl@0 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
sl@0 | 8 |
* |
sl@0 | 9 |
* Initial Contributors: |
sl@0 | 10 |
* Nokia Corporation - initial contribution. |
sl@0 | 11 |
* |
sl@0 | 12 |
* Contributors: |
sl@0 | 13 |
* |
sl@0 | 14 |
* Description: |
sl@0 | 15 |
* |
sl@0 | 16 |
*/ |
sl@0 | 17 |
|
sl@0 | 18 |
|
sl@0 | 19 |
#ifndef __KEYTOOL_ENGINE_H_ |
sl@0 | 20 |
#define __KEYTOOL_ENGINE_H_ |
sl@0 | 21 |
|
sl@0 | 22 |
#include <e32base.h> |
sl@0 | 23 |
#include <unifiedkeystore.h> |
sl@0 | 24 |
|
sl@0 | 25 |
#include "keytool_commands.h" |
sl@0 | 26 |
|
sl@0 | 27 |
class CKeyToolController; |
sl@0 | 28 |
|
sl@0 | 29 |
class CKeyToolEngine : public CActive |
sl@0 | 30 |
{ |
sl@0 | 31 |
public: |
sl@0 | 32 |
static CKeyToolEngine* NewLC(CKeyToolController* aController); |
sl@0 | 33 |
static CKeyToolEngine* NewL(CKeyToolController* aController); |
sl@0 | 34 |
~CKeyToolEngine(); |
sl@0 | 35 |
void ConstructL(); |
sl@0 | 36 |
|
sl@0 | 37 |
public: // Actual commands |
sl@0 | 38 |
void ListL(CKeyToolParameters* aParam); |
sl@0 | 39 |
void ImportL(CKeyToolParameters* aParam); |
sl@0 | 40 |
void RemoveL(CKeyToolParameters* aParam); |
sl@0 | 41 |
void DisplayUsageL(CKeyToolParameters* aParam); |
sl@0 | 42 |
void ListStoresL(CKeyToolParameters* aParam); |
sl@0 | 43 |
void SetPolicyL(CKeyToolParameters* aParam); |
sl@0 | 44 |
#ifdef KEYTOOL |
sl@0 | 45 |
void MigrateStoreL(CKeyToolParameters* aParam); |
sl@0 | 46 |
#endif // KEYTOOL |
sl@0 | 47 |
|
sl@0 | 48 |
public: // From CActive |
sl@0 | 49 |
void RunL(); |
sl@0 | 50 |
void DoCancel(); |
sl@0 | 51 |
TInt RunError(TInt aError); |
sl@0 | 52 |
|
sl@0 | 53 |
protected: |
sl@0 | 54 |
void InitializeL(); |
sl@0 | 55 |
|
sl@0 | 56 |
private: |
sl@0 | 57 |
CKeyToolEngine(CKeyToolController* aController); |
sl@0 | 58 |
|
sl@0 | 59 |
private: |
sl@0 | 60 |
enum |
sl@0 | 61 |
{ |
sl@0 | 62 |
EInitialise, |
sl@0 | 63 |
EExecuting, |
sl@0 | 64 |
EDone |
sl@0 | 65 |
} iState; |
sl@0 | 66 |
enum |
sl@0 | 67 |
{ |
sl@0 | 68 |
EIdle, |
sl@0 | 69 |
EList, |
sl@0 | 70 |
EImport, |
sl@0 | 71 |
ERemove, |
sl@0 | 72 |
ESetPolicy, |
sl@0 | 73 |
#ifdef KEYTOOL |
sl@0 | 74 |
EMigrateStore, |
sl@0 | 75 |
#endif // KEYTOOL |
sl@0 | 76 |
} iCurrentAction; |
sl@0 | 77 |
|
sl@0 | 78 |
TBool iInitialized; |
sl@0 | 79 |
TBool iActiveStarted; |
sl@0 | 80 |
CKeyToolCommand* iHandler; |
sl@0 | 81 |
CKeyToolParameters* iParam; |
sl@0 | 82 |
CKeyToolController* iController; |
sl@0 | 83 |
|
sl@0 | 84 |
RFs iFs; |
sl@0 | 85 |
CUnifiedKeyStore* iKeyStore; |
sl@0 | 86 |
CActiveScheduler* iScheduler; |
sl@0 | 87 |
#ifdef KEYTOOL |
sl@0 | 88 |
CKeytoolMigrateStore* iMigrateStoreHandler; |
sl@0 | 89 |
#endif // KEYTOOL |
sl@0 | 90 |
}; |
sl@0 | 91 |
|
sl@0 | 92 |
#endif |
sl@0 | 93 |