cbsref/telephonyrefplugins/atltsy/atcommand/pktservice/inc/atgprsgetcontextaddr.h
branchRCL_3
changeset 19 630d2f34d719
equal deleted inserted replaced
18:17af172ffa5f 19: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 atgprsgetcontextip.h
       
    15 // AT command definition
       
    16 // This contains CATGPRSGetContextAddr which is defines the AT command used 
       
    17 // for getting GPRS context IP address.
       
    18 // 
       
    19 
       
    20 #ifndef _ATGPRSGETCONTEXTIP_H
       
    21 #define _ATGPRSGETCONTEXTIP_H
       
    22 
       
    23 // user include
       
    24 #include "atcommandbase.h"
       
    25 #include "cltsypacketserviceshandler.h"
       
    26 
       
    27 /**
       
    28  * CATGPRSGetContextAddr inherits from the CAtCommandBase class. 
       
    29  * This class provide the common functionalities for getting 
       
    30  * GPRS context IP address..
       
    31  *
       
    32  */
       
    33 class CATGPRSGetContextAddr : public CAtCommandBase
       
    34 {
       
    35 public:
       
    36 	static CATGPRSGetContextAddr* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    37                                   CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    38 	/**
       
    39 	 * Destructor
       
    40 	 *
       
    41 	 */
       
    42 	~CATGPRSGetContextAddr();
       
    43 	/*
       
    44 	 * Set the parameter of AT command 
       
    45 	 * 
       
    46 	 * @param aContext The context to be set configuration
       
    47 	 */
       
    48 	void SetContext(const TInt aContextId);
       
    49 	TInt GetErrorValue();
       
    50 	/**
       
    51 	 * Virtual function. Inherited from CAtCommandBase
       
    52 	 * Start Execute AT Command
       
    53 	 */
       
    54 	virtual void ExecuteCommand();
       
    55 	/**
       
    56 	 * Virtual function. Inherited from CAtCommandBase
       
    57 	 * @param aResponseBuf Line buf reading from baseband 
       
    58 	 */
       
    59 	virtual void ParseResponseL(const TDesC8& aResponseBuf);
       
    60 	virtual void StartRequest();
       
    61 	
       
    62 protected:	
       
    63 	/**
       
    64 	 * Constructor
       
    65 	 *
       
    66 	 * @param aGloblePhone
       
    67 	 * @param aCtsyDispatcherCallback
       
    68 	 */
       
    69 	CATGPRSGetContextAddr( CGlobalPhonemanager& aGloblePhone, 
       
    70                       CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    71 	/**
       
    72 	 * 2nd Constructor
       
    73 	 */
       
    74 	void ConstructL();
       
    75 private:
       
    76 	/*
       
    77 	 * The return value of AT command executed 
       
    78 	 */
       
    79 	TInt iError;
       
    80 	/*
       
    81 	 * The context to be set configuration
       
    82 	 */
       
    83 	TInt iContextId;
       
    84 	/*
       
    85 	 * The config to be set configuration
       
    86 	 */
       
    87 	RPacketContext::TContextConfigGPRS iContextConfig;
       
    88     };
       
    89 
       
    90 #endif //_ATGPRSGETCONTEXTIP_H