cryptoservices/filebasedcertificateandkeystores/test/thwkeystore/client/thwtokentypeclient.h
changeset 15 da2ae96f639b
equal deleted inserted replaced
10:afc583cfa176 15:da2ae96f639b
       
     1 /*
       
     2 * Copyright (c) 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 * This class inherits from class CCTTokenType which in turn inherits 
       
    16 * from the class MCTTokenType. This class implements all the pure 
       
    17 * virtual functions exposed by class MCTTokenType. This defines a new 
       
    18 * crypto token type.
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 /**
       
    24  * @file
       
    25  * @internalComponent
       
    26  * @released
       
    27  */
       
    28 #ifndef CHARDWARETOKENTYPECLIENT_H
       
    29 #define CHARDWARETOKENTYPECLIENT_H
       
    30 
       
    31 #include <ct/ccttokentype.h>
       
    32 
       
    33 NONSHARABLE_CLASS(CHardwareTokenTypeClient) :  public CCTTokenType
       
    34 {
       
    35 public:
       
    36 	/** Creates a representation of the CCTTokenType
       
    37 	 *	Called by ECom or directly accessible.
       
    38 	 */
       
    39 	static CCTTokenType* NewL();
       
    40 
       
    41 public:
       
    42 	virtual ~CHardwareTokenTypeClient();
       
    43 
       
    44 public:	//	From MCTTokenType
       
    45 	virtual void List(RCPointerArray<HBufC>& aTokens, TRequestStatus& aStatus);
       
    46 	virtual void CancelList();
       
    47 	virtual void OpenToken(const TDesC& aTokenInfo, MCTToken*& aToken, TRequestStatus& aStatus);
       
    48 	virtual void OpenToken(TCTTokenHandle aHandle, MCTToken*& aToken, TRequestStatus& aStatus);
       
    49 	virtual void CancelOpenToken();
       
    50 
       
    51 private:
       
    52 	void OpenToken(MCTTokenType* aTokenType);
       
    53 
       
    54 private:
       
    55 	CHardwareTokenTypeClient();
       
    56 	void ConstructL();
       
    57 };
       
    58 
       
    59 #endif	//	CHARDWARETOKENTYPECLIENT_H