os/security/cryptoservices/filebasedcertificateandkeystores/test/ttestplugin/dummycommonkeystore.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200 (2012-06-15)
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 *
    16 */
    17 
    18 
    19 #include <e32std.h>
    20 #include <ecom/implementationproxy.h>
    21 #include "cdummytokentypeclient.h"
    22 
    23 #ifdef MANAGER_INTERFACE_ONE
    24 const TInt KDummyImplementationId = 0x101FAAA2;
    25 #else
    26 #ifdef KEYSTORE_INTERFACE
    27 const TInt KDummyImplementationId = 0x101FAAA4;
    28 #else 
    29 #ifdef MANAGER_INTERFACE_TWO
    30 const TInt KDummyImplementationId = 0x101FAAA6;
    31 #endif
    32 #endif
    33 #endif
    34 
    35 //	Create a client session on the tokentype server
    36 static CCTTokenType* NewFunctionL();
    37 
    38 CCTTokenType* NewFunctionL()
    39 	{
    40 	CCTTokenType* dummyKeyStore = CDummyTokenTypeClient::NewL();
    41 	return dummyKeyStore;
    42 	}
    43 
    44 const TImplementationProxy ImplementationTable[] =
    45 	{
    46 	IMPLEMENTATION_PROXY_ENTRY(KDummyImplementationId, NewFunctionL)
    47 	};
    48 
    49 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
    50 	{
    51 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
    52 	return (ImplementationTable);
    53 	}