equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation |
14 * Description: Implementation |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 #include <d32otgdi_errors.h> |
18 #include "cusbotgwatcher.h" |
19 #include "cusbotgwatcher.h" |
19 #include "cusbstatehostundefined.h" |
20 #include "cusbstatehostundefined.h" |
20 |
21 |
21 #include "definitions.h" |
22 #include "definitions.h" |
22 #include "errors.h" |
23 #include "errors.h" |
166 |
167 |
167 // --------------------------------------------------------------------------- |
168 // --------------------------------------------------------------------------- |
168 // |
169 // |
169 // --------------------------------------------------------------------------- |
170 // --------------------------------------------------------------------------- |
170 // |
171 // |
171 void CUsbStateHostUndefined::DriverLoadPartialSuccessL(TDeviceEventInformation) |
172 void CUsbStateHostUndefined::DriverLoadPartialSuccessL( |
|
173 TDeviceEventInformation) |
172 { |
174 { |
173 LOG_FUNC |
175 LOG_FUNC |
174 } |
176 } |
175 |
177 |
176 // --------------------------------------------------------------------------- |
178 // --------------------------------------------------------------------------- |
206 // --------------------------------------------------------------------------- |
208 // --------------------------------------------------------------------------- |
207 // |
209 // |
208 void CUsbStateHostUndefined::MessageNotificationReceivedL(TInt aMessage) |
210 void CUsbStateHostUndefined::MessageNotificationReceivedL(TInt aMessage) |
209 { |
211 { |
210 LOG_FUNC |
212 LOG_FUNC |
211 LOG1( "Unhandled message aMessage = %d" , aMessage); |
213 LOG1( "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 } |
212 } |
232 } |
213 |
233 |
214 // --------------------------------------------------------------------------- |
234 // --------------------------------------------------------------------------- |
215 // |
235 // |
216 // --------------------------------------------------------------------------- |
236 // --------------------------------------------------------------------------- |