resourcemgmt/hwresourcesmgr/test/plugins/MockHwrmSY/MockHwrmSY/src/proxy.cpp
changeset 0 4e1aa6a622a0
child 21 ccb4f6b3db21
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/resourcemgmt/hwresourcesmgr/test/plugins/MockHwrmSY/MockHwrmSY/src/proxy.cpp	Tue Feb 02 00:53:00 2010 +0200
@@ -0,0 +1,40 @@
+// Copyright (c) 2007-2009 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 <e32std.h>
+#include <implementationproxy.h>
+#include "cmocklightsy.h"
+#include "cmockvibrasy.h"
+#include "cmockfmtxsy.h"
+#include "cmockpowerstatesy.h"
+#include "cmockpowersy.h"
+
+
+// Map the interface implementation UIDs to implementation factory functions
+const TImplementationProxy ImplementationTable[] =
+    {
+   	IMPLEMENTATION_PROXY_ENTRY(0x9911FF34, CMockLightSY::NewL),
+    IMPLEMENTATION_PROXY_ENTRY(0x9911FF35, CMockVibraSY::NewL),
+    IMPLEMENTATION_PROXY_ENTRY(0x9911FF36, CMockPowerStateSY::NewL),
+    IMPLEMENTATION_PROXY_ENTRY(0x9911FF37, CMockFmTxSY::NewL),
+    IMPLEMENTATION_PROXY_ENTRY(0x9911FF38, CMockPowerSY::NewL),
+   };
+
+// Exported proxy for instantiation method resolution.
+EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount )
+    {
+    aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
+    return ImplementationTable;
+    }