os/security/cryptoservices/certificateandkeymgmt/tasn1/tasn1normaltest.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 * ASN1TestAction.h: interface for the CASN1NormalTest class.
    16 *
    17 */
    18 
    19 
    20 
    21 
    22 /**
    23  @file
    24  @internalTechnology
    25 */
    26 
    27 #ifndef __ASN1TESTACTION_H__
    28 #define __ASN1TESTACTION_H__
    29 
    30 #include "t_testaction.h"
    31 #include "testbase.h"
    32 
    33 class CASN1NormalTest : public CTestAction  
    34 {
    35 public:
    36 	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,Output& aOut, const TTestActionSpec& aTestActionSpec);
    37 	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
    38 		Output& aOut, const TTestActionSpec& aTestActionSpec);
    39 	virtual ~CASN1NormalTest();
    40 	void ReportProgressL(const TInt aError, const TInt aCount, const TInt aMax);
    41 	Output& Out() { return iOut;};
    42 protected:
    43 	CASN1NormalTest(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
    44 	void ConstructL(const TTestActionSpec& aTestActionSpec);
    45 
    46 protected:
    47 	CTestBase *iTestType;
    48 
    49 private:
    50 	
    51 	void DoReportAction();
    52 	void DoCheckResult(TInt aError);
    53 	void PerformAction(TRequestStatus& aStatus);
    54 	TBool TestResult(TInt /*aError*/);
    55 	void PerformCancel();
    56 	void Reset();
    57 
    58 	//RFs& iFs;
    59 	TInt iPercentReported;
    60 	const TInt iReportNumber;
    61 	static TInt iReportCount;
    62 };
    63 
    64 #endif // !defined(AFX_ASN1TESTACTION_H__95894345_8529_11D6_AB96_00080214A261__INCLUDED_)