cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/atselectnetworkmode.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 atselectnetworkmode.h
       
    15 //This file defines the AT command for Selecting Network Mode
       
    16 
       
    17 
       
    18 #ifndef __CATSELECTNETWORKMODE_H__
       
    19 #define __CATSELECTNETWORKMODE_H__
       
    20 
       
    21 //user include
       
    22 #include "atcommandbase.h"
       
    23 
       
    24 /**
       
    25  * class CATSelectNetworkMode 
       
    26  *
       
    27  * CATSelectNetworkMode inherits from the CAtCommandBase class. 
       
    28  * This class transmits the AT+COPS=x Command in order to  
       
    29  * Select Network Mode
       
    30  */
       
    31 class CATSelectNetworkMode : public CAtCommandBase
       
    32 {
       
    33 public:
       
    34 	static CATSelectNetworkMode* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    35 		                              CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    36 
       
    37 	/**
       
    38 	 * Destructor
       
    39 	 *
       
    40 	 */
       
    41 	~CATSelectNetworkMode();
       
    42 
       
    43 	/**
       
    44 	 * Virtual function. Inherited from CAtCommandBase
       
    45 	 *  Start Execute AT Command
       
    46 	 */
       
    47 	virtual void ExecuteCommand();
       
    48 	
       
    49 	virtual void StartRequest();
       
    50 	/**
       
    51 	 * Virtual function. Inherited from CAtCommandBase
       
    52 	 * @param aResponseBuf Line buf reading from baseband 
       
    53 	 */
       
    54 	virtual void ParseResponseL(const TDesC8& aResponseBuf);
       
    55 	/**
       
    56 	 * Will be called by AT Manager whenever a event was triggered
       
    57 	 * 
       
    58 	 * @param aEventSource
       
    59 	 * @param aStatus
       
    60 	 */
       
    61 	virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus);
       
    62 	void SetNetworkSelection(const TInt aNetworkSelection);
       
    63 
       
    64 protected:
       
    65 	/**
       
    66 	 * Constructor
       
    67 	 *
       
    68 	 * @param aGloblePhone
       
    69 	 * @param aCtsyDispatcherCallback
       
    70 	 */
       
    71 	CATSelectNetworkMode(CGlobalPhonemanager& aGloblePhone, 
       
    72 		                 CCtsyDispatcherCallback& aCtsyDispatcherCallback);	
       
    73 	/**
       
    74 	 * 2nd Constructor
       
    75 	 */
       
    76 	void ConstructL();
       
    77 private:
       
    78 	TInt iError;
       
    79 	TInt iNetworkSelection;
       
    80 };
       
    81 #endif