telephonyserverplugins/multimodetsy/Multimode/gprs/atgprsntwkregstatuschange.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 09 Jun 2010 10:58:06 +0300
branchRCL_3
changeset 13 b836c4d4fce7
parent 0 3553901f7fa8
permissions -rw-r--r--
Revision: 201023 Kit: 2010123

// Copyright (c) 2001-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 __ATGPRSNTWKREGSTATUSCHANGE_H
#define __ATGPRSNTWKREGSTATUSCHANGE_H

#include "ATBASE.H"		// for CATBase



class CATGprsNtwkRegStatusChange : public CATBase
/**
This state machine deals with the unsolicited GPRS network registration status change events.
This state machine adds the expect string '+CGREG:*' and then waits for an event.
@internalComponent
*/
	{
public:		// public methods
	static CATGprsNtwkRegStatusChange* NewL(CATIO* aIo, CTelObject* aTelObject, CPhoneGlobals* aGlobals);
	~CATGprsNtwkRegStatusChange();

	void Enable();
	void Disable();

private:		// private methods
	CATGprsNtwkRegStatusChange(CATIO* aIo, CTelObject* aTelObject, CPhoneGlobals* aGlobals);

	// Utility methods
	void ParseResponseL(RPacketService::TRegistrationStatus& aRegStatus);

	// Pure virtuals from CATBase
	virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus);
	virtual void EventSignal(TEventSource aSource);
	};

#endif