equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008 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". |
116 } |
116 } |
117 |
117 |
118 default: |
118 default: |
119 { |
119 { |
120 LOG1("Unexpected request id = %d", iWhat); |
120 LOG1("Unexpected request id = %d", iWhat); |
121 Panic( EUnexpectedSituationToHandle); |
121 PANIC( EUnexpectedSituationToHandle); |
122 break; |
122 break; |
123 } |
123 } |
124 } |
124 } |
125 } |
125 } |
126 |
126 |
144 // |
144 // |
145 void CUsbStateHostDelayNotAttachedHandle::DeviceDetachedL( |
145 void CUsbStateHostDelayNotAttachedHandle::DeviceDetachedL( |
146 TDeviceEventInformation) |
146 TDeviceEventInformation) |
147 { |
147 { |
148 LOG_FUNC |
148 LOG_FUNC |
149 Panic( EDeviceDetachedNotExpected); |
149 PANIC( EDeviceDetachedNotExpected); |
150 |
150 |
151 } |
151 } |
152 |
152 |
153 // From TimerObserver |
153 // From TimerObserver |
154 // --------------------------------------------------------------------------- |
154 // --------------------------------------------------------------------------- |
161 switch (aTimerId) |
161 switch (aTimerId) |
162 { |
162 { |
163 case ETooMuchPowerRequiredTimer: |
163 case ETooMuchPowerRequiredTimer: |
164 { |
164 { |
165 LOG("ETooMuchPowerRequiredTimer" ); |
165 LOG("ETooMuchPowerRequiredTimer" ); |
166 HandleL(EUsbWatcherErrDeviceRequiresTooMuchPower, |
166 HandleL(EUsbWatcherErrUnsupportedDevice, |
167 EUsbStateHostHandleDropping); |
167 EUsbStateHostHandleDropping); |
168 break; |
168 break; |
169 } |
169 } |
170 default: |
170 default: |
171 { |
171 { |
172 LOG1("Unknown timer id = %d", aTimerId ); |
172 LOG1("Unknown timer id = %d", aTimerId ); |
173 Panic( EWrongTimerId); |
173 PANIC( EWrongTimerId); |
174 } |
174 } |
175 } |
175 } |
176 } |
176 } |