equal
deleted
inserted
replaced
19 @file |
19 @file |
20 @internalComponent |
20 @internalComponent |
21 */ |
21 */ |
22 |
22 |
23 #include <ecom/implementationproxy.h> |
23 #include <ecom/implementationproxy.h> |
24 |
|
25 #include <usb/usblogger.h> |
|
26 |
|
27 #ifdef __FLOG_ACTIVE |
|
28 _LIT8(KLogComponent, "USBCHARGE TEST"); |
|
29 #endif |
|
30 |
24 |
31 #include <dummyldd.h> |
25 #include <dummyldd.h> |
32 #define __D32USBC_H__ // ensure that d32usbc is ignored, and dummyldd used instead |
26 #define __D32USBC_H__ // ensure that d32usbc is ignored, and dummyldd used instead |
33 #include "CUsbBatteryChargingTestPlugin.h" |
27 #include "CUsbBatteryChargingTestPlugin.h" |
34 #include "OstTraceDefinitions.h" |
28 #include "OstTraceDefinitions.h" |
67 void CUsbBatteryChargingTestPlugin::GetPluginInfo(TPluginTestInfo& aInfo) |
61 void CUsbBatteryChargingTestPlugin::GetPluginInfo(TPluginTestInfo& aInfo) |
68 { |
62 { |
69 aInfo.iPluginState = iPluginState; |
63 aInfo.iPluginState = iPluginState; |
70 aInfo.iAvailableMilliAmps = iAvailableMilliAmps; |
64 aInfo.iAvailableMilliAmps = iAvailableMilliAmps; |
71 aInfo.iDeviceState = iDeviceState; |
65 aInfo.iDeviceState = iDeviceState; |
72 aInfo.iUserSetting = iUserSetting; |
|
73 aInfo.iCurrentIndexRequested = iCurrentIndexRequested; |
66 aInfo.iCurrentIndexRequested = iCurrentIndexRequested; |
74 aInfo.iRequestedCurrentValue = iRequestedCurrentValue; |
67 aInfo.iRequestedCurrentValue = iRequestedCurrentValue; |
75 } |
68 } |
76 |
69 |
77 TAny* CUsbBatteryChargingTestPlugin::GetInterface(TUid aUid) |
70 TAny* CUsbBatteryChargingTestPlugin::GetInterface(TUid aUid) |
78 { |
71 { |
79 TAny* ret = NULL; |
72 TAny* ret = NULL; |
|
73 ret = CUsbBatteryChargingPlugin::GetInterface(aUid); |
|
74 if(!ret) |
|
75 { |
80 if (aUid == KUidUsbBatteryChargingTestPluginInterface2) |
76 if (aUid == KUidUsbBatteryChargingTestPluginInterface2) |
81 { |
77 { |
82 ret = reinterpret_cast<TAny*>( |
78 ret = reinterpret_cast<TAny*>( |
83 static_cast<MUsbBatteryChargingTestPluginInterface2*>(this) |
79 static_cast<MUsbBatteryChargingTestPluginInterface2*>(this) |
84 ); |
80 ); |
85 } |
81 } |
|
82 } |
86 return ret; |
83 return ret; |
87 } |
84 } |