telephonyserverplugins/multimodetsy/Multimode/gprs/ATGprsDetach.H
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
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 _ATGPRSDETACH_H
       
    22 #define _ATGPRSDETACH_H
       
    23 #include "ATBASE.H"
       
    24 
       
    25 
       
    26 
       
    27 class CPhoneGlobals;
       
    28 
       
    29 
       
    30 class CATGprsDetach : public CATCommands
       
    31 /**
       
    32 Sends the AT command to detach from the network.
       
    33 CATGprsDetach inherits from the CATCommands class. 
       
    34 This class transmits the following commands: AT+CGATT=0
       
    35 @internalComponent
       
    36 */
       
    37 	{
       
    38 public:
       
    39 	static CATGprsDetach* NewL(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals);
       
    40 	
       
    41 	~CATGprsDetach ();
       
    42 	virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams);
       
    43 	virtual void Stop(TTsyReqHandle aTsyReqHandle);
       
    44 private:
       
    45 	CATGprsDetach (CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals);
       
    46 	void ConstructL();
       
    47 	virtual void EventSignal(TEventSource aSource);
       
    48 	virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus);
       
    49 	virtual void Complete(TInt aError,TEventSource aSource);
       
    50 private:
       
    51 	enum 
       
    52 		{
       
    53 		EATNotInProgress,
       
    54 		ESendDetachCommand,
       
    55 		EDetachReadComplete
       
    56 		} iState;								//< Enum for class states.
       
    57 
       
    58 	};
       
    59 
       
    60 
       
    61 
       
    62 #endif