cryptoservices/certificateandkeymgmt/tcertstore/t_certstoreactionsfilecertstore.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 /*
       
     2 * Copyright (c) 2005-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 
       
    20 
       
    21 
       
    22 
       
    23 /**
       
    24  @file
       
    25  @internalTechnology
       
    26 */
       
    27 
       
    28 #ifndef __T_CERTSTOREACTIONSFILECERTSTORE_H__
       
    29 #define __T_CERTSTOREACTIONSFILECERTSTORE_H__
       
    30 
       
    31 #include "t_certstoreactions.h"
       
    32 #include "t_testactionspec.h"
       
    33 
       
    34 class CCreateFileCertStore : public CCertStoreTestAction
       
    35 	{
       
    36 public:
       
    37 	static CTestAction* NewL(RFs &aFs, CConsoleBase& aConsole, Output& aOut, 
       
    38 		const TTestActionSpec& aTestActionSpec);
       
    39 	static CTestAction* NewLC(RFs &aFs, CConsoleBase& aConsole, Output& aOut, 
       
    40 		const TTestActionSpec& aTestActionSpec);
       
    41 	virtual ~CCreateFileCertStore();
       
    42 	virtual void PerformAction(TRequestStatus& aStatus);
       
    43 	virtual void PerformCancel();
       
    44 	virtual void Reset();
       
    45 
       
    46 private:
       
    47 	CCreateFileCertStore(RFs &aFs, CConsoleBase& aConsole, Output& aOut);
       
    48 	void ConstructL(const TTestActionSpec& aTestActionSpec);
       
    49 
       
    50 	void HandleEInit();
       
    51 
       
    52 	void DoReportAction();
       
    53 	void DoCheckResult(TInt aError);
       
    54 	void CreateStoreL(const TDesC& aFileName, RFs& aFs);
       
    55 
       
    56 private:
       
    57 	enum TState
       
    58 		{
       
    59 		EInit,
       
    60 		EFinished
       
    61 		};
       
    62 
       
    63 private:
       
    64 	TState iState;
       
    65 	RFs& iFs;
       
    66 
       
    67 	HBufC* iFileName;
       
    68 	};
       
    69 
       
    70 #endif