os/ossrv/syslibsapitest/syslibssvs/ecom/TestPlugin/Src/TestEComContainer.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2005-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 "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 "TestEComInterface1.h"
    20 #include "TestEComInterface2.h"
    21 #include "TestEComResolver.h"
    22 
    23 // ECom includes
    24 #include <ecom/implementationproxy.h>
    25 
    26 #if (!defined IMPLEMENTATION_PROXY_ENTRY)
    27 typedef TAny* TProxyNewLPtr;
    28 
    29 #define IMPLEMENTATION_PROXY_ENTRY(aUid, aFuncPtr)	{{aUid},(TProxyNewLPtr)(aFuncPtr)}
    30 #endif
    31 
    32 // __________________________________________________________________________
    33 // Exported proxy for instantiation method resolution
    34 // Define the interface UIDs
    35 const TImplementationProxy ImplementationTable[] = 
    36 	{
    37 	IMPLEMENTATION_PROXY_ENTRY(CTestEComInterface1_UID,	CTestEComInterface1::NewL),
    38 	IMPLEMENTATION_PROXY_ENTRY(CTestEComInterface2_UID,	CTestEComInterface2::NewL),
    39 	IMPLEMENTATION_PROXY_ENTRY(CTestEComResolver_UID,	CTestEComResolver::NewL),
    40 	};
    41 
    42 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
    43 	{
    44 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
    45 
    46 	return ImplementationTable;
    47 	}
    48 
    49 /** DLL Entry point */