diff -r 4712310216c0 -r 5323ec7dc425 usbengines/usbotgwatcher/src/cusbstate.cpp --- a/usbengines/usbotgwatcher/src/cusbstate.cpp Fri Apr 23 23:17:21 2010 +0300 +++ b/usbengines/usbotgwatcher/src/cusbstate.cpp Fri Apr 23 23:28:37 2010 +0300 @@ -66,7 +66,8 @@ // TUsbStateIds CUsbState::Id() { - return EUsbStateUndefined; + Panic(EIdForNotDefinedStateRequested); + return EUsbStateHostUndefined; } // --------------------------------------------------------------------------- @@ -111,6 +112,17 @@ // // --------------------------------------------------------------------------- // +void CUsbState::HandleL(TInt aWhat, TUsbStateIds aWhereToHandle) + { + FTRACE( FPrint(_L( "[USBOTGWATCHER]\tCUsbState::HandleL aWhat = %d aWhere = %d" ), aWhat, aWhereToHandle)); + + iWatcher->HandleHostProblemL(aWhat, aWhereToHandle); + } + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// void CUsbState::SetPersonalityL() { } @@ -188,6 +200,7 @@ void CUsbState::VBusUpL() { FLOG( _L( "[USBOTGWATCHER]\tCUsbState::VBusUpL" ) ); + Panic(EVBusUpNotExpected); } // From OTG state observer