cbsref/telephonyrefplugins/atltsy/atcommand/pktservice/inc/atgprscontextdelete.h
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
child 21 4814c5a49428
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     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 atgprscontextdelete.h
       
    15 // AT command definition
       
    16 // This file defines the AT command used for deleting a context from the phone.
       
    17 // 
       
    18 
       
    19 #ifndef __ATGPRSCONTEXTDELETE_H
       
    20 #define __ATGPRSCONTEXTDELETE_H
       
    21 
       
    22 // user include
       
    23 #include "atcommandbase.h"
       
    24 #include "cltsypacketserviceshandler.h"
       
    25 
       
    26 /**
       
    27  * CATGprsContextDelete inherits from the CATCommands class. 
       
    28  * Sends the AT command 'AT+CGDCONT=x' to delete a context from the phone
       
    29  */
       
    30 class CATGprsContextDelete : public CAtCommandBase
       
    31 {
       
    32 public:
       
    33 	static CATGprsContextDelete* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    34                                       CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    35 	/**
       
    36 	 * Destructor
       
    37 	 *
       
    38 	 */
       
    39 	~CATGprsContextDelete();
       
    40 	/**
       
    41 	 * Virtual function. Inherited from CAtCommandBase
       
    42 	 * Start Execute AT Command
       
    43 	 */
       
    44 	virtual void ExecuteCommand();
       
    45 	/*
       
    46 	 * Set the parameter of AT command 
       
    47 	 * 
       
    48 	 * @param aContext The context to be set configuration
       
    49 	 */
       
    50 	void SetContext(const TInt aContextId);
       
    51 	/**
       
    52 	 * Virtual function. Inherited from CAtCommandBase
       
    53 	 * @param aResponseBuf Line buf reading from baseband 
       
    54 	 */
       
    55 	virtual void ParseResponseL(const TDesC8& aResponseBuf);
       
    56 	/**
       
    57 	 * Will be called by AT Manager whenever a event was triggered
       
    58 	 * 
       
    59 	 * @param aEventSource
       
    60 	 * @param aStatus
       
    61 	 */
       
    62 	virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus);
       
    63 	virtual void StartRequest();
       
    64 	
       
    65 protected:	
       
    66 	/**
       
    67 	 * Constructor
       
    68 	 *
       
    69 	 * @param aGloblePhone
       
    70 	 * @param aCtsyDispatcherCallback
       
    71 	 */
       
    72 	CATGprsContextDelete(CGlobalPhonemanager& aGloblePhone, 
       
    73                          CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    74 	/**
       
    75 	 * 2nd Constructorr
       
    76 	 */
       
    77 	void ConstructL();
       
    78 private:
       
    79 	/*
       
    80 	 * The return value of AT command executed 
       
    81 	 */
       
    82 	TInt iError;
       
    83 	/*
       
    84 	 * The context to be set configuration
       
    85 	 */
       
    86 	TInt iContextId;
       
    87 };
       
    88 
       
    89 #endif