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