usbmgmt/usbmgrtest/t_charging_emu/src/CUsbBatteryChargingTestPlugin.cpp
branchRCL_3
changeset 43 012cc2ee6408
parent 42 f92a4f87e424
equal deleted inserted replaced
42:f92a4f87e424 43:012cc2ee6408
    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 
       
    39 
    34 
    40 // Define the private interface UIDs
    35 // Define the private interface UIDs
    41 const TImplementationProxy ImplementationTable[] =
    36 const TImplementationProxy ImplementationTable[] =
    42 	{										
    37 	{										
    43 	IMPLEMENTATION_PROXY_ENTRY(0x1020DEA8, CUsbBatteryChargingTestPlugin::NewL),
    38 	IMPLEMENTATION_PROXY_ENTRY(0x1020DEA8, CUsbBatteryChargingTestPlugin::NewL),
    50 	return ImplementationTable;
    45 	return ImplementationTable;
    51 	}
    46 	}
    52 
    47 
    53 CUsbBatteryChargingTestPlugin* CUsbBatteryChargingTestPlugin::NewL(MUsbmanExtensionPluginObserver& aObserver)
    48 CUsbBatteryChargingTestPlugin* CUsbBatteryChargingTestPlugin::NewL(MUsbmanExtensionPluginObserver& aObserver)
    54 	{
    49 	{
    55     OstTrace0( TRACE_NORMAL, CUSBBATTERYCHARGINGTESTPLUGIN_NEWL, _L8("NewL Test plug-n"));
    50 	LOGTEXT(_L8("NewL Test plug-n"));
    56     
    51 
    57 	CUsbBatteryChargingTestPlugin* self = new(ELeave) CUsbBatteryChargingTestPlugin(aObserver);
    52 	CUsbBatteryChargingTestPlugin* self = new(ELeave) CUsbBatteryChargingTestPlugin(aObserver);
    58 	CleanupStack::PushL(self);
    53 	CleanupStack::PushL(self);
    59 	self->ConstructL();
    54 	self->ConstructL();
    60 	CleanupStack::Pop(self);
    55 	CleanupStack::Pop(self);
    61 	return self;
    56 	return self;