sysresmonitoring/oommonitor/tsrc/oomtest/t_oomdummyplugin/src/ecom_entry.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 12:52:36 +0300
branchRCL_3
changeset 33 332e7bf3b42f
parent 4 0fdb7f6b0309
child 62 924385140d98
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  
*
*/




#include <ecom/implementationproxy.h>
#include "dummyplugin.h"

#define DECLARE_CREATE_INSTANCE(UID) CDummyOomPlugin* CreateInstance##UID() { return CDummyOomPlugin::NewL(UID); }
#define IMPLEMENTATION_INSTANCE(UID) IMPLEMENTATION_PROXY_ENTRY(UID, CreateInstance##UID)

// #define DECLARE_CREATE_INSTANCEV2(UID) CDummyOomPluginV2* CreateInstance##UID() { return CDummyOomPluginV2::NewL(UID); }
// #define IMPLEMENTATION_INSTANCEV2(UID) IMPLEMENTATION_PROXY_ENTRY(UID, CreateInstance##UID)

//ECOM factory functions
DECLARE_CREATE_INSTANCE(0x10286A34)
DECLARE_CREATE_INSTANCE(0x10286A35)
DECLARE_CREATE_INSTANCE(0x10286A36)
DECLARE_CREATE_INSTANCE(0x10286A37)
DECLARE_CREATE_INSTANCE(0x10286A38)
DECLARE_CREATE_INSTANCE(0x10286A39)
DECLARE_CREATE_INSTANCE(0x10286A3A)
DECLARE_CREATE_INSTANCE(0x10286A3B)
// DECLARE_CREATE_INSTANCEV2(0x10286A3C)
// DECLARE_CREATE_INSTANCEV2(0x10286A3D)

// Define the private interface UIDs
const TImplementationProxy ImplementationTable[] =
	{
	IMPLEMENTATION_INSTANCE(0x10286A34),
	IMPLEMENTATION_INSTANCE(0x10286A35),
	IMPLEMENTATION_INSTANCE(0x10286A36),
	IMPLEMENTATION_INSTANCE(0x10286A37),
	IMPLEMENTATION_INSTANCE(0x10286A38),
	IMPLEMENTATION_INSTANCE(0x10286A39),
	IMPLEMENTATION_INSTANCE(0x10286A3A),
	IMPLEMENTATION_INSTANCE(0x10286A3B)// ,
	// IMPLEMENTATION_INSTANCEV2(0x10286A3C),
	// IMPLEMENTATION_INSTANCEV2(0x10286A3D)
	};

EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
	{
	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);

	return ImplementationTable;
	}