cryptoservices/certificateandkeymgmt/tcertstore/t_certstoreactionshandle.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 /*
       
     2 * Copyright (c) 1998-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_CERTSTOREACTIONSHANDLE_H__
       
    27 #define __T_CERTSTOREACTIONSHANDLE_H__
       
    28 
       
    29 #include "t_certstoreactions.h"
       
    30 
       
    31 class CCertStoreHandle : public CCertStoreTestAction
       
    32 	{
       
    33 public:
       
    34 	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, Output& aOut, 
       
    35 		const TTestActionSpec& aTestActionSpec);
       
    36 	virtual ~CCertStoreHandle();
       
    37 	virtual void PerformAction(TRequestStatus& aStatus);
       
    38 	virtual void PerformCancel();
       
    39 	virtual void Reset();
       
    40 
       
    41 private:
       
    42 	CCertStoreHandle(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
       
    43 	void ConstructL(const TTestActionSpec& aTestActionSpec);
       
    44 	void DoReportAction();
       
    45 	void DoCheckResult(TInt aError);
       
    46 
       
    47 private:
       
    48 	enum TState
       
    49 		{
       
    50 		EList,
       
    51 		EHandle
       
    52 		};
       
    53 
       
    54 private:
       
    55 	TState iState;
       
    56 	CCertAttributeFilter* iFilter;
       
    57 	RMPointerArray<CCTCertInfo> iCertInfos;
       
    58 	TCertLabel iLabel;
       
    59 	TCTTokenObjectHandle iHandle;
       
    60 	};
       
    61 
       
    62 
       
    63 #endif