telephonyserverplugins/multimodetsy/hayes/ATCONNCT.CPP
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
   242 	default:
   242 	default:
   243 		;
   243 		;
   244 		}
   244 		}
   245 	}
   245 	}
   246 
   246 
   247 
   247 //
       
   248 //	CATConnectFax
       
   249 //
       
   250 
       
   251 CATConnectFax* CATConnectFax::NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals)
       
   252 	{
       
   253 	CATConnectFax* connect=new(ELeave) CATConnectFax(aIo, aTelObject, aInit,aPhoneGlobals);
       
   254 	CleanupStack::PushL(connect);
       
   255 	connect->ConstructL();
       
   256 	CleanupStack::Pop();
       
   257 	return connect;
       
   258 	}
       
   259 
       
   260 CATConnectFax::CATConnectFax(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals)
       
   261 											: CATFaxCallConnectCommands(aIo,aTelObject,aInit,aPhoneGlobals)
       
   262 	{}
       
   263 
       
   264 CATConnectFax::~CATConnectFax()
       
   265 	{}
       
   266 
       
   267 void CATConnectFax::Start(TTsyReqHandle aTsyReqHandle, TAny* aParams)
       
   268 	{
       
   269 	LOGTEXT(_L8("Starting immediate connect fax call"));
       
   270 	CATFaxCallConnectCommands::Start(aTsyReqHandle,aParams);	
       
   271 	}
       
   272 
       
   273 void CATConnectFax::Stop(TTsyReqHandle aTsyReqHandle)
       
   274 	{
       
   275 	LOGTEXT(_L8("Cancelling Connect Fax Call Command"));
       
   276 	CATFaxCallConnectCommands::Stop(aTsyReqHandle);
       
   277 	}
       
   278 
       
   279 void CATConnectFax::EventSignal(TEventSource aSource)
       
   280 	{
       
   281 	if((aSource==ETimeOutCompletion)
       
   282 		&&(iPreConnectState!=EATWaitForATCheckOK))
       
   283 		{
       
   284 		LOGTEXT(_L8("Timeout Error during Connect"));
       
   285 		Complete(KErrTimedOut,aSource);
       
   286 		return;
       
   287 		}
       
   288 
       
   289 	if (iPreConnectState!=CATCallConnectCommands::EATInitCompleted
       
   290 		&& iPreConnectState!=CATCallConnectCommands::ENotInProgress)
       
   291 		{
       
   292 		CATCallConnectCommands::PreConnectEventSignal(aSource);
       
   293 		}
       
   294 	}
       
   295 
       
   296 void CATConnectFax::CompleteSuccessfully()
       
   297 	{
       
   298 	REINTERPRET_CAST(CCallMobileFax*,iTelObject)->FaxConnect(iReqHandle);	
       
   299 	}
       
   300