cbsref/telephonyrefplugins/atltsy/atcommand/pktservice/inc/atgprsqosprofile.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 atgprsqosprofile.h
       
    15 // AT command definition
       
    16 // This file defines the AT command used to set GPRS Qos profile
       
    17 //
       
    18 
       
    19 #ifndef __ATGPRSQOSPROFILE_H
       
    20 #define __ATGPRSQOSPROFILE_H
       
    21 
       
    22 #include "atcommandbase.h"
       
    23 #include "cltsypacketserviceshandler.h"
       
    24 
       
    25 /**
       
    26  * CATGprsSetProfileMin inherits from the CAtCommandBase class. 
       
    27  * AT command to set GPRS Qos profile for require value
       
    28  * This class transmits the following commands: AT+CGQREQ=%d,%d,%d,%d,%d,%d
       
    29  */
       
    30 class CATGprsSetProfileReq : public CAtCommandBase
       
    31 {
       
    32 public:
       
    33 	static CATGprsSetProfileReq* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    34                                       CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    35 	/**
       
    36 	 * Destructor
       
    37 	 *
       
    38 	 */
       
    39 	~CATGprsSetProfileReq();
       
    40 	/**
       
    41 	 * Format the command 
       
    42 	 */
       
    43 	void MakeupCGQREQ();
       
    44 	/**
       
    45 	 * Set the context for config
       
    46 	 * 
       
    47 	 */
       
    48 	void SetContext(const TInt aContextId);
       
    49 	/**
       
    50 	 * Virtual function. Inherited from CAtCommandBase
       
    51 	 * Start Execute AT Command
       
    52 	 */
       
    53 	virtual void ExecuteCommand();
       
    54 	/**
       
    55 	 * Virtual function. Inherited from CAtCommandBase
       
    56 	 * @param aResponseBuf Line buf reading from baseband 
       
    57 	 */
       
    58 	virtual void ParseResponseL(const TDesC8& aResponseBuf);
       
    59 	/**
       
    60 	 * Will be called by AT Manager whenever a event was triggered
       
    61 	 * 
       
    62 	 * @param aEventSource
       
    63 	 * @param aStatus
       
    64 	 */
       
    65 	virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus);
       
    66 	virtual void StartRequest();
       
    67 	
       
    68 protected:	
       
    69 	/**
       
    70 	 * Constructor
       
    71 	 *
       
    72 	 * @param aGloblePhone
       
    73 	 * @param aCtsyDispatcherCallback
       
    74 	 */
       
    75 	CATGprsSetProfileReq( CGlobalPhonemanager& aGloblePhone, 
       
    76                           CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    77 	/**
       
    78 	 * 2nd Constructor
       
    79 	 */
       
    80 	void ConstructL();
       
    81 private:
       
    82 	TInt iError;
       
    83 	TInt iContextId;
       
    84 	RPacketQoS::TQoSGPRSRequested iQoSConfig;
       
    85     };
       
    86 
       
    87 #endif