# HG changeset patch # User Pierre Cochart # Date 1275575555 -3600 # Node ID 7c3d96ebb73546215e8023197b56affcb48559d3 # Parent 4d82aaca44528e265f959753f144a5783d86b094 Bug 2852 Stub only patch This fix adds a method to AT-LTSY, which would not build in S^3.0.g in which the CTSY/dispatch adds a new API diff -r 4d82aaca4452 -r 7c3d96ebb735 telephonyserverplugins/attestltsy/handler/inc/cltsycallcontrolhandler.h --- a/telephonyserverplugins/attestltsy/handler/inc/cltsycallcontrolhandler.h Tue Mar 02 21:40:14 2010 +0000 +++ b/telephonyserverplugins/attestltsy/handler/inc/cltsycallcontrolhandler.h Thu Jun 03 15:32:35 2010 +0100 @@ -123,6 +123,9 @@ // From MLtsyDispatchCallControlSwap virtual TInt HandleSwapReqL(TInt aHeldCallId, TInt aConnectedCallId); + // From MLtsyDispatchCallControlSwap + virtual TInt HandleSwapReqL(TInt aCallId); + // From MLtsyDispatchCallControlLoanDataPort virtual TInt HandleLoanDataPortSyncL(TInt aCallId, RCall::TCommPort& aCommPort); diff -r 4d82aaca4452 -r 7c3d96ebb735 telephonyserverplugins/attestltsy/handler/src/cltsycallcontrolhandler.cpp --- a/telephonyserverplugins/attestltsy/handler/src/cltsycallcontrolhandler.cpp Tue Mar 02 21:40:14 2010 +0000 +++ b/telephonyserverplugins/attestltsy/handler/src/cltsycallcontrolhandler.cpp Thu Jun 03 15:32:35 2010 +0100 @@ -788,6 +788,46 @@ return nRet; } // CLtsyCallControlHandler::HandleSwapReqL +TInt CLtsyCallControlHandler::HandleSwapReqL(TInt aCallId) +/** + * This request is completed by invoking + * CCtsyDispatcherCallback::CallbackCallControlSwapComp() + * + * @param aCallId The Call ID of the held call to swap. + * + * This request is to toggle the status of a call (conected<->held) + * + * @return KErrNone on success, KErrNotSupported if this request is not supported, + * or another error code to indicate the failure otherwise. + */ + { + LOGTEXT(_L8("[Ltsy CallControl] ***Implement me correctly*** Starting CLtsyCallControlHandler::HandleSwapReqL ")); + LOGTEXT2(_L8("[Ltsy CallControl] aCallId = %d"), aCallId); +//@todo implement me, this function is a patch only + +/* + TInt nRet = iGloblePhone->CheckGlobalPhoneStatus(); + if (nRet == KErrNone) + { + //Setting Port active + iGloblePhone->iEventSignalActive = ETrue; + + //Create DTMF + CATChld* cToggleCall = CATChld::NewL((*iGloblePhone), iCtsyDispatcherCallback); + iGloblePhone->SetActiveRequest(cToggleCall); +// cToggleCall->SetCallId(aHeldCallId); +// cSwapCall->SetConnectedCallId(aConnectedCallId); + cSwapCall->SetIpcType(CATChld::ELtsyReqCallSwap); + cSwapCall->SetChldType(CATChld::EHeldAllActiveCallAndAcceptHeldWaiting); + cSwapCall->StartRequest(); + } + + return nRet; +*/ + +//@todo implement me, this function is a patch only + return KErrNone; + } // CLtsyCallControlHandler::HandleSwapReqL TInt CLtsyCallControlHandler::HandleLoanDataPortSyncL(TInt /*aCallId*/, RCall::TCommPort& /*aCommPort*/) /** * This request is part of