cbsref/telephonyrefplugins/atltsy/atcommand/pktservice/inc/atgprsdetach.h
branchRCL_3
changeset 65 630d2f34d719
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
       
     1 // Copyright (c) 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 // @file atgprsdetach.h
       
    15 // AT command definition
       
    16 // This file defines the AT command used for detaching..
       
    17 // 
       
    18 
       
    19 #ifndef _ATGPRSDETACH_H
       
    20 #define _ATGPRSDETACH_H
       
    21 
       
    22 #include "atcommandbase.h"
       
    23 
       
    24 /**
       
    25  * CATGprsDetach inherits from the CAtCommandBase class. 
       
    26  * Sends the AT command to detach from the network.
       
    27  * This class transmits the following commands: AT+CGATT=0
       
    28  */
       
    29 class CATGprsDetach : public CAtCommandBase
       
    30 {
       
    31 public:
       
    32 	static CATGprsDetach* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    33                                CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    34 	/**
       
    35 	 * Destructor
       
    36 	 *
       
    37 	 */
       
    38 	~CATGprsDetach();
       
    39 	/**
       
    40 	 * Virtual function. Inherited from CAtCommandBase
       
    41 	 * Start Execute AT Command
       
    42 	 */
       
    43 	virtual void ExecuteCommand();
       
    44 	/**
       
    45 	 * Virtual function. Inherited from CAtCommandBase
       
    46 	 * @param aResponseBuf Line buf reading from baseband 
       
    47 	 */
       
    48 	virtual void ParseResponseL(const TDesC8& aResponseBuf);
       
    49 	/**
       
    50 	 * Will be called by AT Manager whenever a event was triggered
       
    51 	 * 
       
    52 	 * @param aEventSource
       
    53 	 * @param aStatus
       
    54 	 */
       
    55 	virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus);
       
    56 	virtual void StartRequest();
       
    57 	
       
    58 protected:	
       
    59 	/**
       
    60 	 * Constructor
       
    61 	 *
       
    62 	 * @param aGloblePhone
       
    63 	 * @param aCtsyDispatcherCallback
       
    64 	 */
       
    65 	CATGprsDetach(CGlobalPhonemanager& aGloblePhone, 
       
    66                   CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    67 	/**
       
    68 	 * 2nd Constructor
       
    69 	 */
       
    70 	void ConstructL();
       
    71 private:
       
    72 	/*
       
    73 	 * The return value of AT command executed 
       
    74 	 */
       
    75 	TInt iError;
       
    76 };
       
    77 
       
    78 #endif