1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2009 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". |
132 |
132 |
133 TRAP( trapError, ret = DoExtFuncL( aTsyReqHandle, aIpc, aPackage ); ); |
133 TRAP( trapError, ret = DoExtFuncL( aTsyReqHandle, aIpc, aPackage ); ); |
134 |
134 |
135 if ( KErrNone != trapError ) |
135 if ( KErrNone != trapError ) |
136 { |
136 { |
137 //reset request handle to indicate the request is no longer ongoing |
|
138 iTsyReqHandleStore->FindAndResetTsyReqHandle(aTsyReqHandle); |
|
139 iReqHandleType = EMultimodePacketQoSReqHandleUnknown; |
|
140 CMmPacketQoSTsy::ReqCompleted( aTsyReqHandle, trapError ); |
137 CMmPacketQoSTsy::ReqCompleted( aTsyReqHandle, trapError ); |
141 } |
138 } |
142 else if ( KErrNone != ret ) |
139 else if ( KErrNone != ret ) |
143 { |
140 { |
144 CMmPacketQoSTsy::ReqCompleted( aTsyReqHandle, ret ); |
141 CMmPacketQoSTsy::ReqCompleted( aTsyReqHandle, ret ); |
145 } |
142 } |
146 else if ( EMultimodePacketQoSReqHandleUnknown != iReqHandleType ) |
143 |
147 { |
144 // Save request handle |
148 // Save request handle |
145 if ( EMultimodePacketQoSReqHandleUnknown != iReqHandleType ) |
|
146 { |
149 #ifdef REQHANDLE_TIMER |
147 #ifdef REQHANDLE_TIMER |
150 SetTypeOfResponse( iReqHandleType, aTsyReqHandle ); |
148 SetTypeOfResponse( iReqHandleType, aTsyReqHandle ); |
151 #else |
149 #else |
152 iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, aTsyReqHandle ); |
150 iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, aTsyReqHandle ); |
153 #endif //REQHANDLE_TIMER |
151 #endif //REQHANDLE_TIMER |
154 } |
152 // We've finished with this value now. Clear it so it doesn't leak |
155 // We've finished with this value now. Clear it so it doesn't leak |
153 // up to any other instances of this method down the call stack |
156 // up to any other instances of this method down the call stack |
154 iReqHandleType = EMultimodePacketQoSReqHandleUnknown; |
157 iReqHandleType = EMultimodePacketQoSReqHandleUnknown; |
155 } |
|
156 |
158 return KErrNone; |
157 return KErrNone; |
159 |
158 |
160 } |
159 } |
161 |
160 |
162 //---------------------------------------------------------------------------- |
161 //---------------------------------------------------------------------------- |