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 AT_Test_LTSY
authorPierre Cochart <pierre.cochart@cell-telecom.com>
Thu, 03 Jun 2010 15:32:35 +0100
branchAT_Test_LTSY
changeset 34 7c3d96ebb735
parent 10 4d82aaca4452
child 51 6012a0dcf61c
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
telephonyserverplugins/attestltsy/handler/inc/cltsycallcontrolhandler.h
telephonyserverplugins/attestltsy/handler/src/cltsycallcontrolhandler.cpp
--- 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);
 
--- 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