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". |
86 |
86 |
87 // check if the same observer already exist in a list |
87 // check if the same observer already exist in a list |
88 if (KErrNotFound != iObservers.Find(&aObserver)) |
88 if (KErrNotFound != iObservers.Find(&aObserver)) |
89 { |
89 { |
90 LOG("Observer already exists" ); |
90 LOG("Observer already exists" ); |
91 Panic( EObserverAlreadyExists); |
91 PANIC( EObserverAlreadyExists); |
92 return; |
92 return; |
93 } |
93 } |
94 |
94 |
95 iObservers.AppendL(&aObserver); |
95 iObservers.AppendL(&aObserver); |
96 |
96 |
113 |
113 |
114 TInt i(iObservers.Find(&aObserver)); |
114 TInt i(iObservers.Find(&aObserver)); |
115 if (KErrNotFound == i) |
115 if (KErrNotFound == i) |
116 { |
116 { |
117 LOG("Observer not found"); |
117 LOG("Observer not found"); |
118 Panic( ECanNotFindHostEventNotificationObserver); |
118 PANIC( ECanNotFindHostEventNotificationObserver); |
119 return; |
119 return; |
120 } |
120 } |
121 |
121 |
122 iObservers.Remove(i); |
122 iObservers.Remove(i); |
123 |
123 |
208 |
208 |
209 for (TInt i(0); i < iObservers.Count(); ++i) |
209 for (TInt i(0); i < iObservers.Count(); ++i) |
210 { |
210 { |
211 iObservers[i]->DriverLoadPartialSuccessL(dei); |
211 iObservers[i]->DriverLoadPartialSuccessL(dei); |
212 } |
212 } |
|
213 |
213 break; |
214 break; |
214 |
|
215 } |
215 } |
216 case EDriverLoadFailure: |
216 case EDriverLoadFailure: |
217 { |
217 { |
218 LOG( "DriverLoadFailure"); |
218 LOG( "DriverLoadFailure"); |
219 |
219 |
224 break; |
224 break; |
225 } |
225 } |
226 default: |
226 default: |
227 { |
227 { |
228 LOG("WrongDriverLoadStatus" ); |
228 LOG("WrongDriverLoadStatus" ); |
229 Panic( EWrongDriverLoadStatus); |
229 PANIC( EWrongDriverLoadStatus); |
230 } |
230 } |
231 } |
231 } |
232 break; |
232 break; |
233 |
233 |
234 } |
234 } |
235 default: |
235 default: |
236 { |
236 { |
237 LOG( "WrongHostEventNotification" ); |
237 LOG( "WrongHostEventNotification" ); |
238 Panic( EWrongHostEventNotification); |
238 PANIC( EWrongHostEventNotification); |
239 } |
239 } |
240 |
240 } |
241 } |
|
242 |
|
243 } |
241 } |
244 |
242 |
245 // --------------------------------------------------------------------------- |
243 // --------------------------------------------------------------------------- |
246 // |
244 // |
247 // --------------------------------------------------------------------------- |
245 // --------------------------------------------------------------------------- |