os/security/cryptoservices/certificateandkeymgmt/tcertstore/t_certstoreactionsfilecertstore.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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  @file
    23  @internalTechnology
    24 */
    25 
    26 #ifndef __T_CERTSTOREACTIONSFILECERTSTORE_H__
    27 #define __T_CERTSTOREACTIONSFILECERTSTORE_H__
    28 
    29 #include "t_certstoreactions.h"
    30 #include "t_testactionspec.h"
    31 
    32 class CCreateFileCertStore : public CCertStoreTestAction
    33 	{
    34 public:
    35 	static CTestAction* NewL(RFs &aFs, CConsoleBase& aConsole, Output& aOut, 
    36 		const TTestActionSpec& aTestActionSpec);
    37 	static CTestAction* NewLC(RFs &aFs, CConsoleBase& aConsole, Output& aOut, 
    38 		const TTestActionSpec& aTestActionSpec);
    39 	virtual ~CCreateFileCertStore();
    40 	virtual void PerformAction(TRequestStatus& aStatus);
    41 	virtual void PerformCancel();
    42 	virtual void Reset();
    43 
    44 private:
    45 	CCreateFileCertStore(RFs &aFs, CConsoleBase& aConsole, Output& aOut);
    46 	void ConstructL(const TTestActionSpec& aTestActionSpec);
    47 
    48 	void HandleEInit();
    49 
    50 	void DoReportAction();
    51 	void DoCheckResult(TInt aError);
    52 	void CreateStoreL(const TDesC& aFileName, RFs& aFs);
    53 
    54 private:
    55 	enum TState
    56 		{
    57 		EInit,
    58 		EFinished
    59 		};
    60 
    61 private:
    62 	TState iState;
    63 	RFs& iFs;
    64 
    65 	HBufC* iFileName;
    66 	};
    67 
    68 #endif
    69