1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
301 |
301 |
302 TRAP( trapError, ret = DoExtFuncL( aTsyReqHandle, aIpc, aPackage ); ); |
302 TRAP( trapError, ret = DoExtFuncL( aTsyReqHandle, aIpc, aPackage ); ); |
303 |
303 |
304 if ( KErrNone != trapError ) |
304 if ( KErrNone != trapError ) |
305 { |
305 { |
|
306 // Reset request handle to indicate the request is no longer ongoing |
|
307 iTsyReqHandleStore->FindAndResetTsyReqHandle( aTsyReqHandle ); |
306 ReqCompleted( aTsyReqHandle, trapError ); |
308 ReqCompleted( aTsyReqHandle, trapError ); |
307 } |
309 } |
308 else if ( KErrNone != ret ) |
310 else if ( KErrNone != ret ) |
309 { |
311 { |
310 ReqCompleted( aTsyReqHandle, ret ); |
312 ReqCompleted( aTsyReqHandle, ret ); |
311 } |
313 } |
312 |
314 else if ( EMultimodeONStoreReqHandleUnknown != iReqHandleType ) |
313 // Save request handle |
315 { |
314 if ( EMultimodeONStoreReqHandleUnknown != iReqHandleType ) |
316 // Save request handle |
315 { |
|
316 #ifdef REQHANDLE_TIMER |
317 #ifdef REQHANDLE_TIMER |
317 SetTypeOfResponse( iReqHandleType, aTsyReqHandle ); |
318 SetTypeOfResponse( iReqHandleType, aTsyReqHandle ); |
318 #else // REQHANDLE_TIMER |
319 #else // REQHANDLE_TIMER |
319 iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, aTsyReqHandle ); |
320 iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, aTsyReqHandle ); |
320 #endif // REQHANDLE_TIMER |
321 #endif // REQHANDLE_TIMER |