diff -r 630d2f34d719 -r 07a122eea281 telephonyserverplugins/multimodetsy/hayes/ATCONNCT.CPP --- a/telephonyserverplugins/multimodetsy/hayes/ATCONNCT.CPP Tue Aug 31 16:23:08 2010 +0300 +++ b/telephonyserverplugins/multimodetsy/hayes/ATCONNCT.CPP Wed Sep 01 12:40:21 2010 +0100 @@ -244,4 +244,57 @@ } } +// +// CATConnectFax +// +CATConnectFax* CATConnectFax::NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals) + { + CATConnectFax* connect=new(ELeave) CATConnectFax(aIo, aTelObject, aInit,aPhoneGlobals); + CleanupStack::PushL(connect); + connect->ConstructL(); + CleanupStack::Pop(); + return connect; + } + +CATConnectFax::CATConnectFax(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals) + : CATFaxCallConnectCommands(aIo,aTelObject,aInit,aPhoneGlobals) + {} + +CATConnectFax::~CATConnectFax() + {} + +void CATConnectFax::Start(TTsyReqHandle aTsyReqHandle, TAny* aParams) + { + LOGTEXT(_L8("Starting immediate connect fax call")); + CATFaxCallConnectCommands::Start(aTsyReqHandle,aParams); + } + +void CATConnectFax::Stop(TTsyReqHandle aTsyReqHandle) + { + LOGTEXT(_L8("Cancelling Connect Fax Call Command")); + CATFaxCallConnectCommands::Stop(aTsyReqHandle); + } + +void CATConnectFax::EventSignal(TEventSource aSource) + { + if((aSource==ETimeOutCompletion) + &&(iPreConnectState!=EATWaitForATCheckOK)) + { + LOGTEXT(_L8("Timeout Error during Connect")); + Complete(KErrTimedOut,aSource); + return; + } + + if (iPreConnectState!=CATCallConnectCommands::EATInitCompleted + && iPreConnectState!=CATCallConnectCommands::ENotInProgress) + { + CATCallConnectCommands::PreConnectEventSignal(aSource); + } + } + +void CATConnectFax::CompleteSuccessfully() + { + REINTERPRET_CAST(CCallMobileFax*,iTelObject)->FaxConnect(iReqHandle); + } +