telephonyserverplugins/multimodetsy/hayes/ATDIAL.CPP
changeset 20 244d7c5f118e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
child 66 07a122eea281
equal deleted inserted replaced
19:1f776524b15c 20:244d7c5f118e
   772 		return ETrue;
   772 		return ETrue;
   773 		}
   773 		}
   774 
   774 
   775 	return EFalse;		// We were unable to send a +CBST string 
   775 	return EFalse;		// We were unable to send a +CBST string 
   776 	}
   776 	}
   777 
       
   778 
       
   779 
       
   780 //
       
   781 //	CATDialFax
       
   782 //
       
   783 
       
   784 CATDialFax*	 CATDialFax::NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals)
       
   785 	{
       
   786 	CATDialFax* dial=new(ELeave) CATDialFax(aIo, aTelObject, aInit,aPhoneGlobals);
       
   787 	CleanupStack::PushL(dial);
       
   788 	dial->ConstructL();
       
   789 	CleanupStack::Pop();
       
   790 	return dial;
       
   791 	}
       
   792 
       
   793 CATDialFax::CATDialFax(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals)
       
   794 											: CATFaxCallConnectCommands(aIo,aTelObject,aInit,aPhoneGlobals)
       
   795 	{}
       
   796 
       
   797 CATDialFax::~CATDialFax()
       
   798 	{
       
   799 	iIo->WriteAndTimerCancel(this);	
       
   800 	}
       
   801 
       
   802 void CATDialFax::Start(TTsyReqHandle aTsyReqHandle, TAny* aParams)
       
   803 	{
       
   804 	LOGTEXT(_L8("Starting dial fax call command"));
       
   805 	iTelnum=REINTERPRET_CAST(TDesC*,aParams);
       
   806 	CATFaxCallConnectCommands::Start(aTsyReqHandle,aParams);
       
   807 	}
       
   808 
       
   809 void CATDialFax::Stop(TTsyReqHandle aTsyReqHandle)
       
   810 	{
       
   811 	LOGTEXT(_L8("Cancelling Dial Fax Call Command"));
       
   812 	CATFaxCallConnectCommands::Stop(aTsyReqHandle);
       
   813 	}
       
   814 
       
   815 void CATDialFax::EventSignal(TEventSource aSource)
       
   816 	{
       
   817 	if((aSource==ETimeOutCompletion)
       
   818 		&&(iPreConnectState!=EATWaitForATCheckOK))
       
   819 		{
       
   820 		LOGTEXT(_L8("Timeout Error during Dial"));
       
   821 		Complete(KErrTimedOut,aSource);
       
   822 		return;
       
   823 		}
       
   824 
       
   825 	if (iPreConnectState!=CATCallConnectCommands::EATInitCompleted
       
   826 		&& iPreConnectState!=CATCallConnectCommands::ENotInProgress)
       
   827 		{
       
   828 		CATCallConnectCommands::PreConnectEventSignal(aSource);
       
   829 		}
       
   830 	}
       
   831 
       
   832 void CATDialFax::CompleteSuccessfully()
       
   833 	{
       
   834 	REINTERPRET_CAST(CCallMobileFax*,iTelObject)->FaxDial(iReqHandle,iTelnum);	
       
   835 	}
       
   836