cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/atgetcellinfo.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 atgetcellinfo.h
       
    15 //  
       
    16 
       
    17 #ifndef __ATGETCELLINFO_H__
       
    18 #define __ATGETCELLINFO_H__
       
    19 
       
    20 //system include
       
    21 #include <etelmm.h>
       
    22 //user include
       
    23 #include "atcommandbase.h"
       
    24 // forward class
       
    25 
       
    26 /**
       
    27  * class CATGetCellInfo 
       
    28  * brief Determines the Cell infomation present in the GSM Network.
       
    29  *
       
    30  * CATGetCellInfo inherits from the CAtCommandBase class. 
       
    31  * This class transmits the AT+CCED=0,7\r Command in order to get 
       
    32  * Cell infomation
       
    33  */
       
    34 class CATGetCellInfo : public CAtCommandBase
       
    35 {
       
    36 public:
       
    37 	static CATGetCellInfo* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    38 		                        CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    39 	/**
       
    40 	 * Destructor
       
    41 	 *
       
    42 	 */
       
    43 	~CATGetCellInfo();
       
    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 	 * Start this request
       
    64 	 */
       
    65 	virtual void StartRequest();
       
    66 protected:	
       
    67 	/**
       
    68 	 * Constructor
       
    69 	 *
       
    70 	 * @param aGloblePhone
       
    71 	 * @param aCtsyDispatcherCallback
       
    72 	 */
       
    73 	CATGetCellInfo(CGlobalPhonemanager& aGloblePhone, 
       
    74 		           CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    75 	/**
       
    76 	 * 2nd Constructor
       
    77 	 */
       
    78 	void ConstructL();
       
    79 private:
       
    80 	/**
       
    81 	 * The return Cell infomation  of AT command executed 
       
    82 	 */
       
    83 	RMmCustomAPI::TMmCellInfo::TGSMCellInfo iCellInfo; 
       
    84 	/**
       
    85 	 * The return error value of AT command executed 
       
    86 	 */
       
    87 	TInt iError;	
       
    88 };
       
    89 #endif //__ATGETCELLINFO_H__