usbengines/usbotgwatcher/src/cusbstatehostundefined.cpp
branchRCL_3
changeset 79 25fce757be94
parent 27 f6533aee8b2b
child 80 e02eb84a14d2
equal deleted inserted replaced
77:5b2a402e96ac 79:25fce757be94
    13  *
    13  *
    14  * Description:  Implementation
    14  * Description:  Implementation
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 #include <d32otgdi_errors.h>
       
    19 #include "cusbotgwatcher.h"
    18 #include "cusbotgwatcher.h"
    20 #include "cusbstatehostundefined.h"
    19 #include "cusbstatehostundefined.h"
    21 
    20 
    22 #include "definitions.h"
    21 #include "definitions.h"
    23 #include "errors.h"
    22 #include "errors.h"
   167 
   166 
   168 // ---------------------------------------------------------------------------
   167 // ---------------------------------------------------------------------------
   169 // 
   168 // 
   170 // ---------------------------------------------------------------------------
   169 // ---------------------------------------------------------------------------
   171 //
   170 //
   172 void CUsbStateHostUndefined::DriverLoadPartialSuccessL(
   171 void CUsbStateHostUndefined::DriverLoadPartialSuccessL(TDeviceEventInformation)
   173         TDeviceEventInformation)
       
   174     {
   172     {
   175     LOG_FUNC
   173     LOG_FUNC
   176     }
   174     }
   177 
   175 
   178 // ---------------------------------------------------------------------------
   176 // ---------------------------------------------------------------------------
   208 // ---------------------------------------------------------------------------
   206 // ---------------------------------------------------------------------------
   209 //
   207 //
   210 void CUsbStateHostUndefined::MessageNotificationReceivedL(TInt aMessage)
   208 void CUsbStateHostUndefined::MessageNotificationReceivedL(TInt aMessage)
   211     {
   209     {
   212     LOG_FUNC
   210     LOG_FUNC
   213     LOG1( "aMessage = %d" , aMessage);
   211     LOG1( "Unhandled message aMessage = %d" , aMessage);
   214 
       
   215     switch (aMessage)
       
   216         {
       
   217         // OTGDI
       
   218         case KErrUsbOtgBadDeviceAttached:
       
   219             {
       
   220             LOG( "BadDeviceAttached" );
       
   221             HandleL(EUsbWatcherErrUnsupportedDevice,
       
   222                     EUsbStateHostHandleDropping);
       
   223             break;
       
   224             }
       
   225         default:
       
   226             {
       
   227             LOG1( "Unhandled message = %d" , aMessage);
       
   228             break;
       
   229             }
       
   230 
       
   231         }
       
   232     }
   212     }
   233 
   213 
   234 // ---------------------------------------------------------------------------
   214 // ---------------------------------------------------------------------------
   235 // 
   215 // 
   236 // ---------------------------------------------------------------------------
   216 // ---------------------------------------------------------------------------