usbengines/usbotgwatcher/src/cusbstatehostainitiate.cpp
changeset 93 2dc695882abd
parent 47 878846f7623e
equal deleted inserted replaced
89:3592750162a5 93:2dc695882abd
   243             {
   243             {
   244             break;
   244             break;
   245             }
   245             }
   246         case KErrUsbDeviceDetachedDuringDriverLoading:
   246         case KErrUsbDeviceDetachedDuringDriverLoading:
   247             {
   247             {
   248             //do not show error, due to device is already detached
   248             LOG( "KErrUsbDeviceDetachedDuringDriverLoading" );
   249             // Device Detachment will not come after this (it was not attached yet)
   249             // do not show error, due to device is already detached
   250             // therefore emulate detachment
   250             // Device Detachment will not come after this (it was not 
       
   251             // normally attached yet), therefore emulate detachment 
   251             // content of aTdi is not important, due to detachment anyway
   252             // content of aTdi is not important, due to detachment anyway
   252             DeviceDetachedL(aTdi);
   253             DeviceDetachedL(aTdi);
   253             break;
   254             break;
   254             }
   255             }
   255         case KErrBadPower:
   256         case KErrBadPower:
   270 
   271 
   271 // ---------------------------------------------------------------------------
   272 // ---------------------------------------------------------------------------
   272 // 
   273 // 
   273 // ---------------------------------------------------------------------------
   274 // ---------------------------------------------------------------------------
   274 //
   275 //
   275 void CUsbStateHostAInitiate::DeviceDetachedL(TDeviceEventInformation aTdi)
   276 void CUsbStateHostAInitiate::DeviceDetachedL(TDeviceEventInformation /*aTdi*/)
   276     {
   277     {
   277     LOG_FUNC
   278     LOG_FUNC
   278 
   279 
   279     // iDeviceAttached is used here to avoid one more state creation (init->attached->detached)
   280     // iDeviceAttached is used here to avoid one more state creation (init->attached->detached)
   280     // due to purpose of this state only to wait for drivers load
   281     // due to purpose of this state only to wait for drivers load
   325 
   326 
   326 // ---------------------------------------------------------------------------
   327 // ---------------------------------------------------------------------------
   327 // 
   328 // 
   328 // ---------------------------------------------------------------------------
   329 // ---------------------------------------------------------------------------
   329 //
   330 //
   330 void CUsbStateHostAInitiate::DriverLoadFailureL(TDeviceEventInformation aDei)
   331 void CUsbStateHostAInitiate::DriverLoadFailureL(TDeviceEventInformation /*aDei*/)
   331     {
   332     {
   332     LOG_FUNC
   333     LOG_FUNC
   333 
   334 
   334     HandleL(EUsbWatcherErrDriversNotFound, EUsbStateHostDelayAttachedHandle);
   335     HandleL(EUsbWatcherErrDriversNotFound, EUsbStateHostDelayAttachedHandle);
   335     }
   336     }