os/security/cryptoservices/filebasedcertificateandkeystores/test/thwkeystore/client/thwtokenclient.h
Update contrib.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * This class inherits from class MCTToken and implements all the pure
16 * virtual methods exposed by MCTToken. This provides the
17 * MCTTokenInterface and also provides reference counting.
27 #ifndef CHARDWARETOKENCLIENT_H
28 #define CHARDWARETOKENCLIENT_H
32 NONSHARABLE_CLASS(CHardwareTokenClient) : public CBase, public MCTToken
35 static MCTToken* NewL(MCTTokenType* aTokenType);
37 public: // From MCTToken
38 virtual MCTTokenType& TokenType();
39 virtual const TDesC& Label();
40 virtual TCTTokenHandle Handle();
42 protected: // From MCTToken
43 virtual TInt& ReferenceCount();
44 virtual void DoGetInterface(TUid aRequiredInterface, MCTTokenInterface*& aReturnedInterface, TRequestStatus& aStatus);
45 virtual TBool DoCancelGetInterface();
46 virtual const TDesC& Information(TTokenInformation aRequiredInformation);
49 CHardwareTokenClient(MCTTokenType* aTokenType);
52 MCTTokenType* iTokenType;
56 #endif // CHARDWARETOKENCLIENT_H