resourcemgmt/hwresourcesmgr/test/plugins/MockHwrmSY/MockHwrmSY/src/proxy.cpp
changeset 0 4e1aa6a622a0
child 21 ccb4f6b3db21
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <e32std.h>
       
    17 #include <implementationproxy.h>
       
    18 #include "cmocklightsy.h"
       
    19 #include "cmockvibrasy.h"
       
    20 #include "cmockfmtxsy.h"
       
    21 #include "cmockpowerstatesy.h"
       
    22 #include "cmockpowersy.h"
       
    23 
       
    24 
       
    25 // Map the interface implementation UIDs to implementation factory functions
       
    26 const TImplementationProxy ImplementationTable[] =
       
    27     {
       
    28    	IMPLEMENTATION_PROXY_ENTRY(0x9911FF34, CMockLightSY::NewL),
       
    29     IMPLEMENTATION_PROXY_ENTRY(0x9911FF35, CMockVibraSY::NewL),
       
    30     IMPLEMENTATION_PROXY_ENTRY(0x9911FF36, CMockPowerStateSY::NewL),
       
    31     IMPLEMENTATION_PROXY_ENTRY(0x9911FF37, CMockFmTxSY::NewL),
       
    32     IMPLEMENTATION_PROXY_ENTRY(0x9911FF38, CMockPowerSY::NewL),
       
    33    };
       
    34 
       
    35 // Exported proxy for instantiation method resolution.
       
    36 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount )
       
    37     {
       
    38     aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    39     return ImplementationTable;
       
    40     }