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". |
1982 // Call DoExtFuncL() |
1982 // Call DoExtFuncL() |
1983 TRAP( trapError, ret = DoExtFuncL( aIpc, aPackage ); ); |
1983 TRAP( trapError, ret = DoExtFuncL( aIpc, aPackage ); ); |
1984 |
1984 |
1985 if ( KErrNone != trapError ) |
1985 if ( KErrNone != trapError ) |
1986 { |
1986 { |
|
1987 //reset request handle to indicate the request is no longer ongoing |
|
1988 iTsyReqHandleStore->FindAndResetTsyReqHandle(aTsyReqHandle); |
1987 CMmPacketServiceTsy::ReqCompleted( iTsyReqHandle, trapError ); |
1989 CMmPacketServiceTsy::ReqCompleted( iTsyReqHandle, trapError ); |
1988 } |
1990 } |
1989 else if ( KErrNone != ret ) |
1991 else if ( KErrNone != ret ) |
1990 { |
1992 { |
1991 CMmPacketServiceTsy::ReqCompleted( iTsyReqHandle, ret ); |
1993 CMmPacketServiceTsy::ReqCompleted( iTsyReqHandle, ret ); |
1992 } |
1994 } |
1993 |
1995 else if ( EMultimodePacketServiceReqHandleUnknown != iReqHandleType ) |
1994 if ( EMultimodePacketServiceReqHandleUnknown != iReqHandleType ) |
|
1995 { |
1996 { |
1996 // Save request handle type |
1997 // Save request handle type |
1997 |
1998 |
1998 #ifdef REQHANDLE_TIMER |
1999 #ifdef REQHANDLE_TIMER |
1999 SetTypeOfResponse( iReqHandleType ); |
2000 SetTypeOfResponse( iReqHandleType ); |
2000 #else |
2001 #else |
2001 iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, iTsyReqHandle ); |
2002 iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, iTsyReqHandle ); |
2002 #endif // REQHANDLE_TIMER |
2003 #endif // REQHANDLE_TIMER |
2003 // We've finished with this value now. Clear it so it doesn't leak |
2004 } |
2004 // up to any other instances of this method down the call stack |
2005 // We've finished with this value now. Clear it so it doesn't leak |
2005 iReqHandleType = EMultimodePacketServiceReqHandleUnknown; |
2006 // up to any other instances of this method down the call stack |
2006 } |
2007 iReqHandleType = EMultimodePacketServiceReqHandleUnknown; |
2007 |
|
2008 return KErrNone; |
2008 return KErrNone; |
2009 } |
2009 } |
2010 |
2010 |
2011 //---------------------------------------------------------------------------- |
2011 //---------------------------------------------------------------------------- |
2012 // CMmPacketServiceTsy::DoExtFuncL |
2012 // CMmPacketServiceTsy::DoExtFuncL |
4105 TInt CMmPacketServiceTsy::MaximumActiveServices() |
4105 TInt CMmPacketServiceTsy::MaximumActiveServices() |
4106 { |
4106 { |
4107 return iMaxActiveServices; |
4107 return iMaxActiveServices; |
4108 } |
4108 } |
4109 |
4109 |
|
4110 |
|
4111 //----------------------------------------------------------------------------- |
|
4112 // TBool CMmPacketServiceTsy::ResetReqHandle |
|
4113 // Resets request handle in the req handle store |
|
4114 //----------------------------------------------------------------------------- |
|
4115 // |
|
4116 TBool CMmPacketServiceTsy::ResetReqHandle( const TTsyReqHandle aTsyReqHandle ) |
|
4117 { |
|
4118 return (iTsyReqHandleStore->FindAndResetTsyReqHandle( aTsyReqHandle ) > 0); |
|
4119 } |
|
4120 |
4110 // End of File |
4121 // End of File |
4111 |
4122 |