telephonyserverplugins/multimodetsy/hayes/ATCONNCT.H
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 16:12:37 +0300
changeset 20 244d7c5f118e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
child 66 07a122eea281
permissions -rw-r--r--
Revision: 201015 Kit: 201015

// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @file
 @internalAll 
*/

#ifndef __ATCONNCT_H__
#define __ATCONNCT_H__

#include "ATCALL.H"

class CATConnectData : public CATDataCallConnectCommands
/**
Connect command
@internalTechnology
*/
	{
public:
	static CATConnectData* NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals);
	~CATConnectData();
	virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams);
	virtual void Stop(TTsyReqHandle aTsyReqHandle);
protected:
	CATConnectData(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals);
	virtual void EventSignal(TEventSource aSource);
	virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus);
private:
	TInt AddConnectExpectStrings();
	void RemoveConnectExpectStrings();
	TInt ValidateConnectExpectString();
private:
	CCommChatString* iNoDialToneExpectString;
	enum {
		EATNotInProgress,
		EATInitialising,
		EATSendConnectCommand,
		EATConnectWaitForWriteComplete,
		EATConnectReadCompleted,
		EATSpeedReadComplete,
		EATCancellingWaitForWriteComplete,
		EATCancellingReadCompleted
		} iState;
	TBuf8<KCommsDbSvrMaxFieldLength> iNoDialToneString;
	};


#endif