telephonyserverplugins/multimodetsy/hayes/ATHANGUP.CPP
changeset 20 244d7c5f118e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
child 66 07a122eea281
equal deleted inserted replaced
19:1f776524b15c 20:244d7c5f118e
   485 		iComplete->Call();	// calls the AysncOneShot Relinquish completion function
   485 		iComplete->Call();	// calls the AysncOneShot Relinquish completion function
   486 		iCallInfo->iClientPanicOccurred = ENoPanicOccurred;
   486 		iCallInfo->iClientPanicOccurred = ENoPanicOccurred;
   487 		}	
   487 		}	
   488 	iState=EATNotInProgress;
   488 	iState=EATNotInProgress;
   489 	}
   489 	}
   490 
       
   491 //
       
   492 //	CATHangUpFax
       
   493 //
       
   494 
       
   495 CATHangUpFax* CATHangUpFax::NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals)
       
   496 	{
       
   497 	CATHangUpFax* hangup=new(ELeave) CATHangUpFax(aIo, aTelObject, aInit,aPhoneGlobals);
       
   498 	CleanupStack::PushL(hangup);
       
   499 	hangup->ConstructL();
       
   500 	CleanupStack::Pop();
       
   501 	return hangup;
       
   502 	}
       
   503 
       
   504 CATHangUpFax::CATHangUpFax(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals)
       
   505 											: CATCallAlterCommands(aIo,aTelObject,aInit,aPhoneGlobals)
       
   506 	{}
       
   507 
       
   508 CATHangUpFax::~CATHangUpFax()
       
   509 	{}
       
   510 
       
   511 void CATHangUpFax::Start(TTsyReqHandle aTsyReqHandle, TAny* /*aParams*/)
       
   512 //
       
   513 //	When a fax call is terminated, modem is set to not initialised so that if a data call
       
   514 //  follows it will initialise the modem again.
       
   515 //
       
   516 	{
       
   517 	LOGTEXT(_L8("Starting HangUp fax call"));
       
   518 	iReqHandle=aTsyReqHandle;
       
   519 	iPhoneGlobals->iNotificationStore->CheckNotification(REINTERPRET_CAST(CCallBase*,iTelObject),EBegunHangingUp);
       
   520 	CCallMobileFax* faxCall = REINTERPRET_CAST(CCallMobileFax*,iTelObject);
       
   521 //	iPhoneGlobals->iPhoneStatus.iInitStatus = EPhoneNotInitialised;
       
   522 	faxCall->FaxHangUp(aTsyReqHandle);
       
   523 	}
       
   524 
       
   525 void CATHangUpFax::Stop(TTsyReqHandle aTsyReqHandle)
       
   526 //
       
   527 //	Too late to stop hang up process here. Only hope is if escape sequence or init sequence
       
   528 //	had to be performed first
       
   529 //
       
   530 	{
       
   531 	__ASSERT_ALWAYS(aTsyReqHandle == iReqHandle,Panic(EIllegalTsyReqHandle));
       
   532 	LOGTEXT(_L8("Too late to cancel Hang Up Command"));
       
   533 	}
       
   534 
       
   535 void CATHangUpFax::EventSignal(TEventSource /*aSource*/)
       
   536 	{}
       
   537 
       
   538 void CATHangUpFax::Complete(TInt /*aError*/,TEventSource /*aSource*/)
       
   539 	{}