os/security/cryptoservices/certificateandkeymgmt/swicertstore/CSWICertStoreToken.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) 2004-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 * CSWICertStoreToken class implementation
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file 
    22  @internalTechnology
    23 */
    24  
    25 #ifndef __CSWICERTSTORETOKEN_H__
    26 #define __CSWICERTSTORETOKEN_H__
    27 
    28 #include <ct/mcttoken.h>
    29 
    30 class CSWICertStore;
    31 class CCTTokenType;
    32 
    33 /**
    34  * SWI Cert store token.
    35  */
    36 NONSHARABLE_CLASS(CSWICertStoreToken) : public CBase, public MCTToken
    37 	{
    38 public:
    39 	CSWICertStoreToken(CCTTokenType& aTokenType);
    40 	
    41 public:
    42 	// Implementation of MCTToken
    43 	virtual MCTTokenType& TokenType();
    44 	virtual const TDesC& Label();
    45 	virtual TCTTokenHandle Handle();
    46 
    47 	/// Called by CSWICertStore::DoRelease
    48 	TBool ReleaseInterface();
    49 	
    50 protected:
    51 	virtual TInt& ReferenceCount();
    52 	virtual void DoGetInterface(TUid aRequiredInterface,
    53 							  MCTTokenInterface*& aReturnedInterface, 
    54 							  TRequestStatus& aStatus);
    55 	virtual TBool DoCancelGetInterface();
    56 	virtual const TDesC& Information(TTokenInformation aRequiredInformation);
    57 
    58 private:
    59 	virtual ~CSWICertStoreToken();
    60 	
    61 private:
    62 	CCTTokenType& iTokenType;
    63 	TInt iRefCount;
    64 	CSWICertStore* iCertStore;
    65 	TInt iInterfaceRefCount;
    66 	};
    67 
    68 #endif