telephonyserverplugins/multimodetsy/Multimode/gprs/ATGprsContextDeactivate.H
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalAll 
       
    19 */
       
    20 
       
    21 #ifndef __ATGPRSCONTEXTDEACTIVATE_H
       
    22 #define __ATGPRSCONTEXTDEACTIVATE_H
       
    23 #include "ATBASE.H"
       
    24 
       
    25 class CPhoneGlobals;
       
    26 
       
    27 class CATGprsContextDeactivate : public CATCommands
       
    28 /**
       
    29 Sends the AT command to deactivate a context to the network.
       
    30 CATGprsContextDeactivate inherits from the CATCommands class. 
       
    31 This class transmits the following commands: ATH, +++ and ATH.
       
    32 This will release the ppp chain and return to AT command mode.
       
    33 @internalComponent
       
    34 */
       
    35 	{
       
    36 public:
       
    37 	static CATGprsContextDeactivate * NewL(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals);
       
    38 	
       
    39 	~CATGprsContextDeactivate ();
       
    40 	virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* /*aDummy*/);
       
    41 	virtual void Stop(TTsyReqHandle aTsyReqHandle);
       
    42 protected:
       
    43 	CATGprsContextDeactivate (CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals);
       
    44 	void ConstructL();
       
    45 	virtual void EventSignal(TEventSource aSource);
       
    46 	virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus);
       
    47 	virtual void Complete(TInt aError,TEventSource aSource);
       
    48 private:
       
    49 	void ValidateHangUpExpectStringL();
       
    50 private:
       
    51 	CCommChatString* iNoCarrierExpectString;				//< Pointer to response string.
       
    52 	enum													
       
    53 		{
       
    54 		EATNotInProgress,									
       
    55 		EDTRDropped,
       
    56 		EWaitForDTRRaiseSettle,
       
    57 		EATEscapeSeqWaitForWriteComplete,
       
    58 		EATEscapeSeqCompleted,
       
    59 		EATHangupWaitForWriteComplete,
       
    60 		EATHangupReadCompleted,
       
    61 		EHangUpCancelling
       
    62 		} iState;											//< Enum for class states.
       
    63 
       
    64 	};
       
    65 
       
    66 
       
    67 
       
    68 #endif