usbmgmt/usbmgrtest/t_charging_emu/src/CUsbBatteryChargingTestPlugin.cpp
branchRCL_3
changeset 42 f92a4f87e424
parent 0 c9bc50fca66e
child 43 012cc2ee6408
child 49 93c0009bd947
equal deleted inserted replaced
37:d3e8e7d462dd 42:f92a4f87e424
    29 #endif
    29 #endif
    30 
    30 
    31 #include <dummyldd.h>
    31 #include <dummyldd.h>
    32 #define __D32USBC_H__ // ensure that d32usbc is ignored, and dummyldd used instead
    32 #define __D32USBC_H__ // ensure that d32usbc is ignored, and dummyldd used instead
    33 #include "CUsbBatteryChargingTestPlugin.h"
    33 #include "CUsbBatteryChargingTestPlugin.h"
       
    34 #include "OstTraceDefinitions.h"
       
    35 #ifdef OST_TRACE_COMPILER_IN_USE
       
    36 #include "CUsbBatteryChargingTestPluginTraces.h"
       
    37 #endif
       
    38 
    34 
    39 
    35 // Define the private interface UIDs
    40 // Define the private interface UIDs
    36 const TImplementationProxy ImplementationTable[] =
    41 const TImplementationProxy ImplementationTable[] =
    37 	{										
    42 	{										
    38 	IMPLEMENTATION_PROXY_ENTRY(0x1020DEA8, CUsbBatteryChargingTestPlugin::NewL),
    43 	IMPLEMENTATION_PROXY_ENTRY(0x1020DEA8, CUsbBatteryChargingTestPlugin::NewL),
    45 	return ImplementationTable;
    50 	return ImplementationTable;
    46 	}
    51 	}
    47 
    52 
    48 CUsbBatteryChargingTestPlugin* CUsbBatteryChargingTestPlugin::NewL(MUsbmanExtensionPluginObserver& aObserver)
    53 CUsbBatteryChargingTestPlugin* CUsbBatteryChargingTestPlugin::NewL(MUsbmanExtensionPluginObserver& aObserver)
    49 	{
    54 	{
    50 	LOGTEXT(_L8("NewL Test plug-n"));
    55     OstTrace0( TRACE_NORMAL, CUSBBATTERYCHARGINGTESTPLUGIN_NEWL, _L8("NewL Test plug-n"));
    51 
    56     
    52 	CUsbBatteryChargingTestPlugin* self = new(ELeave) CUsbBatteryChargingTestPlugin(aObserver);
    57 	CUsbBatteryChargingTestPlugin* self = new(ELeave) CUsbBatteryChargingTestPlugin(aObserver);
    53 	CleanupStack::PushL(self);
    58 	CleanupStack::PushL(self);
    54 	self->ConstructL();
    59 	self->ConstructL();
    55 	CleanupStack::Pop(self);
    60 	CleanupStack::Pop(self);
    56 	return self;
    61 	return self;