telephonyserverplugins/multimodetsy/Multimode/gprs/atgprscontextdelete.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 __ATGPRSCONTEXTDELETE_H
       
    22 #define __ATGPRSCONTEXTDELETE_H
       
    23 
       
    24 #include "ATBASE.H"		// for CATCommands
       
    25 
       
    26 
       
    27 class CATGprsContextDelete : public CATCommands
       
    28 /**
       
    29 Sends the AT command '+CGDCONT=x' to delete a context from the phone
       
    30 @internalComponent
       
    31 */
       
    32 	{
       
    33 public:
       
    34 	static CATGprsContextDelete* NewL(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals);
       
    35 	~CATGprsContextDelete ();
       
    36 
       
    37 private:
       
    38 	CATGprsContextDelete(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals);
       
    39 	
       
    40 	virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aDummy);
       
    41 	virtual void Stop(TTsyReqHandle aTsyReqHandle);
       
    42 	virtual void EventSignal(TEventSource aSource);
       
    43 	virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus);
       
    44 	virtual void Complete(TInt aError,TEventSource aSource);
       
    45 
       
    46 private:
       
    47 	enum {EIdle,EWaitForWrite,EWaitForRead} iState;	//< Enum for class states.
       
    48 	};
       
    49 
       
    50 
       
    51 #endif