cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/atnotifycellinfo.h
changeset 44 8b72faa1200f
equal deleted inserted replaced
39:2473f5e227f9 44:8b72faa1200f
       
     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 atnotifycellinfo.h
       
    15 // AT command definition
       
    16 // This file defines the AT command used to Notify Cell infomation
       
    17 
       
    18 #ifndef __ATNODIFYCELLINFO_H__
       
    19 #define __ATNODIFYCELLINFO_H__
       
    20 
       
    21 //system include
       
    22 
       
    23 //user include
       
    24 #include "atcommandbase.h"
       
    25 
       
    26 /**
       
    27  * CATNotifyCellInfo inherits from the CAtCommandBase class. 
       
    28  * AT command to Notify the phones current network
       
    29  * registration status.
       
    30  * This class transmits the following commands: +CCED:
       
    31  */
       
    32 class CATNotifyCellInfo : public CAtCommandBase
       
    33 	{
       
    34 public:
       
    35 	static CATNotifyCellInfo* NewL(CGlobalPhonemanager& aGloblePhone,
       
    36 			                    CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    37 	static CATNotifyCellInfo* NewLC(CGlobalPhonemanager& aGloblePhone,
       
    38 			                     CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    39 	/**
       
    40 	 * Destructor
       
    41 	 *
       
    42 	 */
       
    43 	virtual ~CATNotifyCellInfo();
       
    44 	/**
       
    45 	 * Virtual function. Inherited from CAtCommandBase
       
    46 	 * Start Execute AT Command
       
    47 	 */
       
    48 	virtual void ExecuteCommand(){};
       
    49 	/**
       
    50 	 * Parses the +CGREG unsolicited string from the modem.
       
    51 	 * An example response would be '+CREG: 2' where the value denotes the
       
    52 	 * current registration status.
       
    53 	 * If parsing succeeds then aRegStatus is updated.
       
    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 	/**
       
    67 	 * 
       
    68 	 * 
       
    69 	 */
       
    70 	void Enable();
       
    71 	/**
       
    72 	 * 
       
    73 	 * 
       
    74 	 */
       
    75 	void Disable();
       
    76 	
       
    77 	
       
    78 protected:
       
    79 	/**
       
    80 	 * Constructor
       
    81 	 *
       
    82 	 * @param aGloblePhone
       
    83 	 * @param aCtsyDispatcherCallback
       
    84 	 */
       
    85 	CATNotifyCellInfo(CGlobalPhonemanager& aGloblePhone,
       
    86 				   CCtsyDispatcherCallback& aCtsyDispatcherCallback);	
       
    87 	/**
       
    88 	 * 2nd Constructor
       
    89 	 * This function must be called in his subtype class for 
       
    90 	 * creating instance of class CRespondBufParser
       
    91 	 */
       
    92 	void ConstructL();
       
    93 	
       
    94 private:
       
    95 	/**
       
    96 	 * The return Cell infomation  of AT command executed 
       
    97 	 */
       
    98 	RMmCustomAPI::TMmCellInfo::TGSMCellInfo iCellInfo; 
       
    99 	/*
       
   100 	 * The return value of AT command executed 
       
   101 	 */
       
   102 	TInt iError;
       
   103 	
       
   104 	};
       
   105 
       
   106 #endif //__ATNODIFYCELLINFO_H__