cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/atgetnetworkregistrationstatus.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 atgetnetworkregistrationstatus.h
       
    15 // This contains CATNetworkRegistration which is defines the AT command for Getting
       
    16 // network registration status
       
    17 // 
       
    18 
       
    19 #ifndef __CNETWORKREGISTRATION_H__
       
    20 #define __CNETWORKREGISTRATION_H__
       
    21 
       
    22 //user include
       
    23 #include "atcommandbase.h"
       
    24 
       
    25 // forward class
       
    26 class CATNetworkRegStatusChange;
       
    27 /**
       
    28  * class CATNetworkRegistration 
       
    29  *
       
    30  * CATNetworkRegistration inherits from the CAtCommandBase class. 
       
    31  * This class transmits the AT+CREG=? Command in order to get 
       
    32  * network registration status
       
    33  */
       
    34 class CATNetworkRegistration : public CAtCommandBase
       
    35 {
       
    36 public:
       
    37 	static CATNetworkRegistration* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    38 		                                CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    39 	/**
       
    40 	 * Destructor
       
    41 	 *
       
    42 	 */
       
    43 	~CATNetworkRegistration();
       
    44 
       
    45 	/**
       
    46 	 * Virtual function. Inherited from CAtCommandBase
       
    47 	 *  Start Execute AT Command
       
    48 	 */
       
    49 	virtual void ExecuteCommand();
       
    50 	/**
       
    51 	 * Will be called by AT Manager whenever a event was triggered
       
    52 	 * 
       
    53 	 * @param aEventSource
       
    54 	 * @param aStatus
       
    55 	 */
       
    56 	virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus);
       
    57 	/**
       
    58 	 * Virtual function. Inherited from CAtCommandBase
       
    59 	 * @param aResponseBuf Line buf reading from baseband 
       
    60 	 */
       
    61 	virtual void ParseResponseL(const TDesC8& aResponseBuf);
       
    62 	/**
       
    63 	 * Get error value executed AT Command
       
    64 	 */
       
    65 	TInt GetErrorValue();
       
    66 	
       
    67 	virtual void StartRequest();
       
    68 	
       
    69 protected:
       
    70 	/**
       
    71 	 * Constructor
       
    72 	 *
       
    73 	 * @param aGloblePhone
       
    74 	 * @param aCtsyDispatcherCallback
       
    75 	 */
       
    76 	CATNetworkRegistration(CGlobalPhonemanager& aGloblePhone, 
       
    77 		                   CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    78 	/**
       
    79 	 * 2nd Constructor
       
    80 	 */
       
    81 	void ConstructL();
       
    82 	
       
    83 private:	
       
    84 	/*
       
    85 	 * The return network registration status infomation  of AT command executed 
       
    86 	 */
       
    87 	RMobilePhone::TMobilePhoneRegistrationStatus iRegistrationStatus;
       
    88 	/*
       
    89 	 * The return error value of AT command executed 
       
    90 	 */
       
    91 	TInt iError;
       
    92 };
       
    93 #endif