diff -r 21625e5de155 -r 93c0009bd947 usbmgmt/usbmgr/usbman/server/INC/CUsbDevice.h --- a/usbmgmt/usbmgr/usbman/server/INC/CUsbDevice.h Mon Sep 06 11:27:08 2010 +0800 +++ b/usbmgmt/usbmgr/usbman/server/INC/CUsbDevice.h Thu Sep 16 12:03:29 2010 +0800 @@ -30,13 +30,26 @@ #include #include #include + #ifndef __DUMMY_LDD__ -#include +#ifdef SYMBIAN_USB_BATTERYCHARGING_V1_1 +#include +#include +class CUsbChargingPortTypeWatcher; +#else +#include +#endif #else #include "dummyusblddapi.h" +#ifdef SYMBIAN_USB_BATTERYCHARGING_V1_1 +#include +class CUsbChargingPortTypeWatcher; #endif + +#endif + #include -#include + #ifndef __DUMMY_LDD__ #include #else @@ -44,7 +57,6 @@ #endif - class CUsbDeviceStateWatcher; class CUsbClassControllerBase; class CUsbServer; @@ -114,6 +126,13 @@ void RegisterObserverL(MUsbDeviceNotify& aObserver); void DeRegisterObserver(MUsbDeviceNotify& aObserver); +#ifdef SYMBIAN_USB_BATTERYCHARGING_V1_1 + void RegisterChargingInfoObserverL(MUsbChargingNotify& aObserver); + void DeRegisterChargingInfoObserver(MUsbChargingNotify& aObserver); + void SetChargingPortType(TUsbcChargingPortType aChargerType); + void PeerDeviceMaxPower(TUint aCurrent); +#endif + void StartL(); void Stop(); @@ -133,7 +152,7 @@ TInt CurrentPersonalityId() const; const RPointerArray& Personalities() const; const CPersonality* GetPersonality(TInt aPersonalityId) const; - void ValidatePersonalitiesL(); + void ValidatePersonalities(); void ReadPersonalitiesL(); void SetDefaultPersonalityL(); void LoadFallbackClassControllersL(); @@ -151,7 +170,9 @@ public: // from MUsbmanExtensionPluginObserver RDevUsbcClient& MuepoDoDevUsbcClient(); void MuepoDoRegisterStateObserverL(MUsbDeviceNotify& aObserver); - +#ifdef SYMBIAN_USB_BATTERYCHARGING_V1_1 + void MuepoDoRegisterChargingObserverL(MUsbChargingNotify& aObserver); +#endif protected: CUsbDevice(CUsbServer& aUsbServer); void ConstructL(); @@ -180,6 +201,10 @@ TInt iLastError; RDevUsbcClient iLdd; CUsbDeviceStateWatcher* iDeviceStateWatcher; +#ifdef SYMBIAN_USB_BATTERYCHARGING_V1_1 + CUsbChargingPortTypeWatcher* iChargerTypeWatcher; + RPointerArray iChargingObservers; +#endif CUsbServer& iUsbServer; CUsbClassControllerIterator* iUsbClassControllerIterator; const CPersonality* iCurrentPersonality;