diff -r e84fb4c9218b -r ef2686f7597e usbengines/usbwatcher/src/cusbwatcher.cpp --- a/usbengines/usbwatcher/src/cusbwatcher.cpp Mon Jun 21 22:40:15 2010 +0100 +++ b/usbengines/usbwatcher/src/cusbwatcher.cpp Thu Jul 22 16:44:03 2010 +0100 @@ -106,6 +106,7 @@ iGlobalStateObserver = CUsbGlobalSystemStateObserver::NewL( *this ); iUsbDevConStarter = CUsbDevConStarter::NewL(); iActiveState = CUsbActiveState::NewL( iUsbMan, *this ); + iUsbIndicatorHandler = CUsbIndicatorHandler::NewL(); } // ---------------------------------------------------------------------------- @@ -147,6 +148,7 @@ delete iUsbDeviceLock; delete iGlobalStateObserver; iSupportedPersonalities.Close(); + delete iUsbIndicatorHandler; } // ---------------------------------------------------------------------------- @@ -217,7 +219,7 @@ // This method notifies CUsbWatcher class about USB state changes. // ---------------------------------------------------------------------------- // -void CUsbWatcher::StateChangeNotify( TUsbDeviceState aStateOld, +void CUsbWatcher::StateChangeNotifyL( TUsbDeviceState aStateOld, TUsbDeviceState aStateNew ) { LOG_FUNC @@ -226,7 +228,7 @@ // Not show USB indicator in charging mode if ( iNormalStart ) { - iUsbIndicatorHandler.HandleDeviceStateChange( aStateOld, aStateNew ); + iUsbIndicatorHandler->HandleDeviceStateChangeL( aStateOld, aStateNew, iPersonalityId ); } if ( IsDeviceA() ) // Will be handled by UsbOtgWatcher