1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation |
|
15 * |
8 * |
16 */ |
9 * Initial Contributors: |
17 |
10 * Nokia Corporation - initial contribution. |
18 |
11 * |
19 #include <usbuinotif.h> |
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation |
|
15 * |
|
16 */ |
20 |
17 |
21 #include "cusbstatehosthandle.h" |
18 #include "cusbstatehosthandle.h" |
22 #ifndef STIF |
|
23 #include "cusbnotifmanager.h" |
|
24 #else |
|
25 #include "mockcusbnotifmanager.h" |
|
26 #endif |
|
27 |
19 |
28 #include "errors.h" |
20 #include "errors.h" |
29 #include "debug.h" |
21 #include "debug.h" |
30 #include "panic.h" |
22 #include "panic.h" |
31 |
23 |
32 // --------------------------------------------------------------------------- |
24 // --------------------------------------------------------------------------- |
33 // |
25 // |
34 // --------------------------------------------------------------------------- |
26 // --------------------------------------------------------------------------- |
35 // |
27 // |
36 CUsbStateHostHandle::CUsbStateHostHandle(CUsbOtgWatcher* aWatcher) : |
28 CUsbStateHostHandle::CUsbStateHostHandle(CUsbOtgWatcher& aWatcher) : |
37 CUsbState(aWatcher) |
29 CUsbStateHostABase(aWatcher) |
38 { |
30 { |
39 } |
|
40 |
|
41 // --------------------------------------------------------------------------- |
|
42 // |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 CUsbStateHostHandle* CUsbStateHostHandle::NewL(CUsbOtgWatcher* aWatcher) |
|
46 { |
|
47 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::NewL" ) ); |
|
48 |
|
49 CUsbStateHostHandle* self = new (ELeave) CUsbStateHostHandle(aWatcher); |
|
50 CleanupStack::PushL(self); |
|
51 self->ConstructL(); |
|
52 CleanupStack::Pop(self); |
|
53 return self; |
|
54 } |
31 } |
55 |
32 |
56 // --------------------------------------------------------------------------- |
33 // --------------------------------------------------------------------------- |
57 // |
34 // |
58 // --------------------------------------------------------------------------- |
35 // --------------------------------------------------------------------------- |
59 // |
36 // |
60 void CUsbStateHostHandle::ConstructL() |
37 void CUsbStateHostHandle::ConstructL() |
61 { |
38 { |
62 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::ConstructL" ) ); |
39 LOG_FUNC |
|
40 |
|
41 CUsbStateHostABase::ConstructL(); |
|
42 |
63 } |
43 } |
64 |
44 |
65 // --------------------------------------------------------------------------- |
45 // --------------------------------------------------------------------------- |
66 // |
46 // |
67 // --------------------------------------------------------------------------- |
47 // --------------------------------------------------------------------------- |
68 // |
48 // |
69 CUsbStateHostHandle::~CUsbStateHostHandle() |
49 CUsbStateHostHandle::~CUsbStateHostHandle() |
70 { |
50 { |
71 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::~CUsbStateHostHandle" ) ); |
51 LOG_FUNC |
72 |
|
73 } |
|
74 |
|
75 // --------------------------------------------------------------------------- |
|
76 // |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 TUsbStateIds CUsbStateHostHandle::Id() |
|
80 { |
|
81 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::Id" ) ); |
|
82 |
|
83 return EUsbStateHostHandle; |
|
84 } |
52 } |
85 |
53 |
86 // --------------------------------------------------------------------------- |
54 // --------------------------------------------------------------------------- |
87 // |
55 // |
88 // --------------------------------------------------------------------------- |
56 // --------------------------------------------------------------------------- |
89 // |
57 // |
90 void CUsbStateHostHandle::JustAdvancedToThisStateL() |
58 void CUsbStateHostHandle::JustAdvancedToThisStateL() |
91 { |
59 { |
92 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::JustAdvancedToThisStateL" ) ); |
60 LOG_FUNC |
93 iWatcher->PrintStateToLog(); |
|
94 |
61 |
|
62 // first do general things |
|
63 CUsbStateHostABase::JustAdvancedToThisStateL(); |
|
64 |
|
65 // then, do specific things |
95 DoHandleL(); |
66 DoHandleL(); |
|
67 |
96 } |
68 } |
97 |
69 |
98 // --------------------------------------------------------------------------- |
|
99 // |
|
100 // --------------------------------------------------------------------------- |
|
101 // |
|
102 void CUsbStateHostHandle::JustBeforeLeavingThisStateL() |
|
103 { |
|
104 iWatcher->NotifManager()->CloseAllNotifiers(); |
|
105 } |
|
106 // --------------------------------------------------------------------------- |
70 // --------------------------------------------------------------------------- |
107 // |
71 // |
108 // --------------------------------------------------------------------------- |
72 // --------------------------------------------------------------------------- |
109 // |
73 // |
110 void CUsbStateHostHandle::SetWhat(TInt aWhat) |
74 void CUsbStateHostHandle::SetWhat(TInt aWhat) |
111 { |
75 { |
112 iWhat = aWhat; |
76 iWhat = aWhat; |
113 } |
77 } |
114 |
78 |
115 // this means only one wait notifier at a time can be shown by this state |
79 // From message notification observer |
116 // --------------------------------------------------------------------------- |
80 // --------------------------------------------------------------------------- |
117 // |
81 // |
118 // --------------------------------------------------------------------------- |
82 // --------------------------------------------------------------------------- |
119 // |
83 // |
120 void CUsbStateHostHandle::WaitNotifierCompletedL(TInt /*aFeedback*/) |
84 void CUsbStateHostHandle::MessageNotificationReceivedL(TInt aMessage) |
121 { |
85 { |
122 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL" ) ); |
86 LOG_FUNC |
123 switch (iWhat) |
87 LOG1( "Unhandled message aMessage = %d" , aMessage); |
124 { |
|
125 case EUsbWatcherErrDriversNotFound: |
|
126 { |
|
127 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL DriversNotFound" ) ); |
|
128 ChangeHostStateL(EUsbStateHostAInitiate); |
|
129 break; |
|
130 } |
|
131 case EUsbWatcherHubsNotSupported: |
|
132 { |
|
133 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL EUsbWatcherHubsNotSupported" ) ); |
|
134 ChangeHostStateL(EUsbStateHostAInitiate); |
|
135 break; |
|
136 } |
|
137 case EUsbWatcherErrDeviceRequiresTooMuchPower: |
|
138 { |
|
139 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL EUsbWatcherErrDeviceRequiresTooMuchPower" ) ); |
|
140 ChangeHostStateL(EUsbStateHostAInitiate); |
|
141 break; |
|
142 } |
|
143 case EUsbWatcherErrDeviceRequiresTooMuchPowerOnEnumeration: |
|
144 { |
|
145 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL EUsbWatcherErrDeviceRequiresTooMuchPowerOnEnumeration" ) ); |
|
146 ChangeHostStateL(EUsbStateHostAInitiate); |
|
147 break; |
|
148 } |
|
149 case EUsbWatcherErrUnsupportedDevice: |
|
150 { |
|
151 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL EUsbWatcherErrUnsupportedDevice" ) ); |
|
152 ChangeHostStateL(EUsbStateHostAInitiate); |
|
153 break; |
|
154 } |
|
155 case EUsbWatcherConnectedToOTG: |
|
156 { |
|
157 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL EUsbWatcherConnectedToOTG" ) ); |
|
158 ChangeHostStateL(EUsbStateHostAInitiate); |
|
159 break; |
|
160 } |
|
161 case EUsbWatcherErrDandlingCable: |
|
162 { |
|
163 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL EUsbWatcherErrDandlingCable" ) ); |
|
164 ChangeHostStateL(EUsbStateHostAInitiate); |
|
165 break; |
|
166 } |
|
167 case EUsbWatcherNoActivity: |
|
168 { |
|
169 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL EUsbWatcherNoActivity" ) ); |
|
170 ChangeHostStateL(EUsbStateHostAInitiate); |
|
171 break; |
|
172 } |
|
173 case EUsbWatcherErrorInConnection: |
|
174 { |
|
175 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL EUsbWatcherErrorInConnection" ) ); |
|
176 ChangeHostStateL(EUsbStateHostAInitiate); |
|
177 break; |
|
178 } |
|
179 case EUsbWatcherCanNotStartUsbServices: |
|
180 { |
|
181 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL EUsbWatcherCanNotStartUsbServices" ) ); |
|
182 |
|
183 break; |
|
184 } |
|
185 // errors from observers mapped to one |
|
186 case EUsbWatcherIdPinError: |
|
187 case EUsbWatcherVBusObserverError: |
|
188 case EUsbWatcherHostEventNotificationError: |
|
189 case EUsbWatcherOtgStateError: |
|
190 case EUsbWatcherMessageNotificationError: |
|
191 { |
|
192 // try to restore |
|
193 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL Error in observer" ) ); |
|
194 ChangeHostStateL(EUsbStateHostAInitiate); |
|
195 break; |
|
196 } |
|
197 default: |
|
198 { |
|
199 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::WaitNotifierCompletedL Unexpected situation to be handled" ) ); |
|
200 Panic(EUnexpectedSituationToHandle); |
|
201 break; |
|
202 } |
|
203 |
88 |
204 } |
|
205 } |
|
206 |
|
207 // --------------------------------------------------------------------------- |
|
208 // |
|
209 // --------------------------------------------------------------------------- |
|
210 // |
|
211 void CUsbStateHostHandle::DoHandleL() |
|
212 { |
|
213 FTRACE( FPrint(_L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL iWhat = %d" ), iWhat)); |
|
214 |
|
215 // Drop VBus first |
|
216 // Ignore any errors when calling BusDrop(). Those indicate that VBus already dropped |
|
217 iWatcher->Usb().BusDrop(); |
|
218 |
|
219 switch (iWhat) |
|
220 { |
|
221 |
|
222 case EUsbWatcherHubsNotSupported: |
|
223 { |
|
224 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL EUsbWatcherHubsNotSupported" ) ); |
|
225 iWatcher->NotifManager()->ShowNotifierL(KUsbUiNotifOtgError, |
|
226 EUsbOtgHubUnsupported, this); |
|
227 break; |
|
228 } |
|
229 case EUsbWatcherErrDeviceRequiresTooMuchPower: |
|
230 { |
|
231 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL EUsbWatcherErrDeviceRequiresTooMuchPower" ) ); |
|
232 iWatcher->NotifManager()->ShowNotifierL(KUsbUiNotifOtgError, |
|
233 EUsbOtgTooMuchPower, this); |
|
234 break; |
|
235 } |
|
236 case EUsbWatcherErrUnsupportedDevice: |
|
237 { |
|
238 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL EUsbWatcherErrUnsupportedDevice" ) ); |
|
239 iWatcher->NotifManager()->ShowNotifierL(KUsbUiNotifOtgError, |
|
240 EUsbOtgUnsupportedDevice, this); |
|
241 break; |
|
242 } |
|
243 case EUsbWatcherConnectedToOTG: |
|
244 { |
|
245 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL EUsbWatcherConnectedToOTG" ) ); |
|
246 iWatcher->NotifManager()->ShowNotifierL(KUsbUiNotifOtgError, |
|
247 EUsbOtgUnsupportedDevice, this); |
|
248 |
|
249 break; |
|
250 } |
|
251 case EUsbWatcherErrDandlingCable: |
|
252 { |
|
253 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL EUsbWatcherErrDandlingCable" ) ); |
|
254 iWatcher->NotifManager()->ShowNotifierL(KUsbUiNotifOtgError, |
|
255 EUsbOtgErrorAttachTimedOut, this); |
|
256 break; |
|
257 } |
|
258 case EUsbWatcherNoActivity: |
|
259 { |
|
260 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL EUsbWatcherNoActivity" ) ); |
|
261 iWatcher->NotifManager()->ShowNotifierL(KUsbUiNotifOtgError, |
|
262 EUsbOtgUnsupportedDevice, this); |
|
263 |
|
264 break; |
|
265 } |
|
266 case EUsbWatcherErrorInConnection: |
|
267 { |
|
268 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL EUsbWatcherErrorInConnection" ) ); |
|
269 iWatcher->NotifManager()->ShowNotifierL(KUsbUiNotifOtgError, |
|
270 EUsbOtgErrorInConnection, this); |
|
271 break; |
|
272 } |
|
273 case EUsbWatcherCanNotStartUsbServices: |
|
274 { |
|
275 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL EUsbWatcherCanNotStartUsbServices" ) ); |
|
276 iWatcher->NotifManager()->ShowNotifierL(KUsbUiNotifOtgError, |
|
277 EUsbOtgErrorInConnection, this); |
|
278 break; |
|
279 } |
|
280 // errors from observers mapped to one |
|
281 case EUsbWatcherIdPinError: |
|
282 case EUsbWatcherVBusObserverError: |
|
283 case EUsbWatcherHostEventNotificationError: |
|
284 case EUsbWatcherOtgStateError: |
|
285 case EUsbWatcherMessageNotificationError: |
|
286 { |
|
287 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL Error from observer" ) ); |
|
288 iWatcher->NotifManager()->ShowNotifierL(KUsbUiNotifOtgError, |
|
289 EUsbOtgErrorInConnection, this); |
|
290 break; |
|
291 } |
|
292 default: |
|
293 { |
|
294 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DoHandleL Unexpected situation to be handled" ) ); |
|
295 Panic(EUnexpectedSituationToHandle); |
|
296 break; |
|
297 } |
|
298 } |
|
299 } |
|
300 |
|
301 ///////////////////////////////////////////////////////////////////////////////////// |
|
302 // From VBus observer |
|
303 // --------------------------------------------------------------------------- |
|
304 // |
|
305 // --------------------------------------------------------------------------- |
|
306 // |
|
307 void CUsbStateHostHandle::VBusUpL() |
|
308 { |
|
309 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::VBusUpL" ) ); |
|
310 // as result of BusRespondSrp() VBus might rise up. |
|
311 // role swap is not supported => drop vbus |
|
312 // when role swap is supported, leave this function empty |
|
313 |
|
314 iWatcher->Usb().BusDrop(); |
|
315 } |
|
316 |
|
317 // --------------------------------------------------------------------------- |
|
318 // this is expected in the state, for example after calling BusDrop |
|
319 // --------------------------------------------------------------------------- |
|
320 // |
|
321 void CUsbStateHostHandle::VBusDownL() |
|
322 { |
|
323 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::VBusDownL" ) ); |
|
324 } |
|
325 |
|
326 // --------------------------------------------------------------------------- |
|
327 // |
|
328 // --------------------------------------------------------------------------- |
|
329 // |
|
330 void CUsbStateHostHandle::VBusErrorL() |
|
331 { |
|
332 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::VBusErrorL" ) ); |
|
333 |
|
334 iWatcher->Usb().BusClearError(); |
|
335 } |
|
336 |
|
337 // From OTG state observer |
|
338 // --------------------------------------------------------------------------- |
|
339 // this AIdle means that VBus gets down. From usbwatcher POV no need to change state here |
|
340 // --------------------------------------------------------------------------- |
|
341 // |
|
342 void CUsbStateHostHandle::AIdleL() |
|
343 { |
|
344 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::AIdleL" ) ); |
|
345 |
|
346 } |
|
347 |
|
348 // --------------------------------------------------------------------------- |
|
349 // this means VBus gets up (for example as result RespondSrp()). Do not change state to Host, due to for usbwatcher it would mean |
|
350 // that device attached and driverls found. |
|
351 // --------------------------------------------------------------------------- |
|
352 // |
|
353 void CUsbStateHostHandle::AHostL() |
|
354 { |
|
355 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::AHostL" ) ); |
|
356 } |
|
357 |
|
358 // --------------------------------------------------------------------------- |
|
359 // |
|
360 // --------------------------------------------------------------------------- |
|
361 // |
|
362 void CUsbStateHostHandle::APeripheralL() |
|
363 { |
|
364 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::APeripheralL" ) ); |
|
365 |
|
366 ChangeHostStateL(EUsbStateHostAPeripheral); |
|
367 |
|
368 } |
|
369 |
|
370 // --------------------------------------------------------------------------- |
|
371 // ignore any problems on VBus, just clear it |
|
372 // |
|
373 // --------------------------------------------------------------------------- |
|
374 // |
|
375 void CUsbStateHostHandle::AVBusErrorL() |
|
376 { |
|
377 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::AVBusErrorL" ) ); |
|
378 iWatcher->Usb().BusClearError(); |
|
379 } |
|
380 |
|
381 // From bus activity observer |
|
382 // --------------------------------------------------------------------------- |
|
383 // |
|
384 // --------------------------------------------------------------------------- |
|
385 // |
|
386 void CUsbStateHostHandle::BusIdleL() |
|
387 { |
|
388 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::BusIdleL" ) ); |
|
389 } |
|
390 |
|
391 // --------------------------------------------------------------------------- |
|
392 // |
|
393 // --------------------------------------------------------------------------- |
|
394 // |
|
395 void CUsbStateHostHandle::BusActiveL() |
|
396 { |
|
397 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::BusActiveL" ) ); |
|
398 } |
|
399 |
|
400 // From Host Event notification observer |
|
401 // --------------------------------------------------------------------------- |
|
402 // |
|
403 // --------------------------------------------------------------------------- |
|
404 // |
|
405 void CUsbStateHostHandle::DeviceAttachedL( |
|
406 TDeviceEventInformation aDevEventInfo) |
|
407 { |
|
408 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DeviceAttachedL" ) ); |
|
409 |
|
410 } |
|
411 |
|
412 // --------------------------------------------------------------------------- |
|
413 // |
|
414 // --------------------------------------------------------------------------- |
|
415 // |
|
416 void CUsbStateHostHandle::DeviceDetachedL(TDeviceEventInformation) |
|
417 { |
|
418 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::DeviceDetachedL" ) ); |
|
419 |
|
420 } |
|
421 |
|
422 // --------------------------------------------------------------------------- |
|
423 // |
|
424 // --------------------------------------------------------------------------- |
|
425 // |
|
426 void CUsbStateHostHandle::DriverLoadSuccessL(TDeviceEventInformation) |
|
427 { |
|
428 FLOG( _L( "[USBOTGWATCHER]\tCUsbState::DriverLoadSuccessL" ) ); |
|
429 |
|
430 } |
|
431 |
|
432 // --------------------------------------------------------------------------- |
|
433 // |
|
434 // --------------------------------------------------------------------------- |
|
435 // |
|
436 void CUsbStateHostHandle::DriverLoadPartialSuccessL(TDeviceEventInformation) |
|
437 { |
|
438 FLOG( _L( "[USBOTGWATCHER]\tCUsbState::DriverLoadPartialSuccessL" ) ); |
|
439 |
|
440 } |
|
441 |
|
442 // --------------------------------------------------------------------------- |
|
443 // |
|
444 // --------------------------------------------------------------------------- |
|
445 // |
|
446 void CUsbStateHostHandle::DriverLoadFailureL(TDeviceEventInformation) |
|
447 { |
|
448 FLOG( _L( "[USBOTGWATCHER]\tCUsbState::DriverLoadFailureL" ) ); |
|
449 |
|
450 } |
|
451 |
|
452 // --------------------------------------------------------------------------- |
|
453 // |
|
454 // --------------------------------------------------------------------------- |
|
455 // |
|
456 void CUsbStateHostHandle::MessageNotificationReceivedL(TInt) |
|
457 { |
|
458 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::MessageNotificationReceivedL" ) ); |
|
459 |
|
460 } |
|
461 |
|
462 // --------------------------------------------------------------------------- |
|
463 // |
|
464 // --------------------------------------------------------------------------- |
|
465 // |
|
466 void CUsbStateHostHandle::SrpReceivedL() |
|
467 { |
|
468 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::SrpReceivedL" ) ); |
|
469 |
|
470 TInt err = iWatcher->Usb().BusRespondSrp(); |
|
471 FTRACE( FPrint(_L( "[USBOTGWATCHER]\tCUsbStateHostHandle::SrpReceivedL BusRespondSrp()=%d" ), err)); |
|
472 |
|
473 if (KErrNone != err) |
|
474 { |
|
475 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::SrpReceivedL BusRespondSrp error" ) ); |
|
476 iWhat = EUsbWatcherErrorInConnection; |
|
477 DoHandleL(); |
|
478 return; |
|
479 } |
|
480 } |
89 } |
481 |
90 |
482 // --------------------------------------------------------------------------- |
91 // --------------------------------------------------------------------------- |
483 // |
92 // |
484 // --------------------------------------------------------------------------- |
93 // --------------------------------------------------------------------------- |
485 // |
94 // |
486 void CUsbStateHostHandle::SessionRequestedL() |
95 void CUsbStateHostHandle::SessionRequestedL() |
487 { |
96 { |
488 FLOG( _L( "[USBOTGWATCHER]\tCUsbStateHostHandle::SessionRequestedL" ) ); |
97 LOG_FUNC |
489 |
|
490 } |
98 } |