telephonyserverplugins/common_tsy/commontsy/src/mmpacket/Cmmpacketservicetsy.cpp
changeset 69 b982c3e940f3
parent 44 8b72faa1200f
child 73 70d75957b98f
equal deleted inserted replaced
59:ac20d6a0a19d 69:b982c3e940f3
  1987     // Call DoExtFuncL()
  1987     // Call DoExtFuncL()
  1988     TRAP( trapError, ret = DoExtFuncL( aIpc, aPackage ); );
  1988     TRAP( trapError, ret = DoExtFuncL( aIpc, aPackage ); );
  1989 
  1989 
  1990     if ( KErrNone != trapError )
  1990     if ( KErrNone != trapError )
  1991         {
  1991         {
       
  1992 		//reset request handle to indicate the request is no longer ongoing
       
  1993         iTsyReqHandleStore->FindAndResetTsyReqHandle(aTsyReqHandle);
  1992         CMmPacketServiceTsy::ReqCompleted( iTsyReqHandle, trapError );
  1994         CMmPacketServiceTsy::ReqCompleted( iTsyReqHandle, trapError );
  1993         }
  1995         }
  1994     else if ( KErrNone != ret )
  1996     else if ( KErrNone != ret )
  1995         {
  1997         {
  1996         CMmPacketServiceTsy::ReqCompleted( iTsyReqHandle, ret );
  1998         CMmPacketServiceTsy::ReqCompleted( iTsyReqHandle, ret );
  1997         }
  1999         }
  1998 
  2000     else if ( EMultimodePacketServiceReqHandleUnknown != iReqHandleType )
  1999     if ( EMultimodePacketServiceReqHandleUnknown != iReqHandleType )
       
  2000         {
  2001         {
  2001         // Save request handle type
  2002         // Save request handle type
  2002 
  2003 
  2003 #ifdef REQHANDLE_TIMER
  2004 #ifdef REQHANDLE_TIMER
  2004         SetTypeOfResponse( iReqHandleType );
  2005         SetTypeOfResponse( iReqHandleType );
  2005 #else
  2006 #else
  2006         iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, iTsyReqHandle );
  2007         iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, iTsyReqHandle );
  2007 #endif // REQHANDLE_TIMER
  2008 #endif // REQHANDLE_TIMER
  2008         // We've finished with this value now. Clear it so it doesn't leak
  2009         }
  2009         //  up to any other instances of this method down the call stack
  2010     // We've finished with this value now. Clear it so it doesn't leak
  2010         iReqHandleType = EMultimodePacketServiceReqHandleUnknown;
  2011     //  up to any other instances of this method down the call stack
  2011         }
  2012     iReqHandleType = EMultimodePacketServiceReqHandleUnknown;
  2012 
       
  2013     return KErrNone;
  2013     return KErrNone;
  2014     }
  2014     }
  2015 
  2015 
  2016 //----------------------------------------------------------------------------
  2016 //----------------------------------------------------------------------------
  2017 // CMmPacketServiceTsy::DoExtFuncL
  2017 // CMmPacketServiceTsy::DoExtFuncL
  4110 TInt CMmPacketServiceTsy::MaximumActiveServices()
  4110 TInt CMmPacketServiceTsy::MaximumActiveServices()
  4111     {
  4111     {
  4112     return iMaxActiveServices;
  4112     return iMaxActiveServices;
  4113     }
  4113     }
  4114 
  4114 
       
  4115     
       
  4116 //-----------------------------------------------------------------------------
       
  4117 // TBool CMmPacketServiceTsy::ResetReqHandle
       
  4118 // Resets request handle in the req handle store
       
  4119 //-----------------------------------------------------------------------------
       
  4120 // 
       
  4121 TBool CMmPacketServiceTsy::ResetReqHandle( const TTsyReqHandle aTsyReqHandle )
       
  4122     {
       
  4123     return iTsyReqHandleStore->FindAndResetTsyReqHandle( aTsyReqHandle );
       
  4124     }
       
  4125 
  4115 //  End of File
  4126 //  End of File
  4116 
  4127