cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/atgetsimstatusready.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 atgetsimstatusready.h
       
    15 // 
       
    16 /**
       
    17  * @file
       
    18  *
       
    19  * AT command definition
       
    20  * This file defines the AT command for Getting SIM card status
       
    21  * 
       
    22  */
       
    23 
       
    24 #ifndef __CATSIMCARD_H__
       
    25 #define __CATSIMCARD_H__
       
    26 
       
    27 //user include
       
    28 #include "atcommandbase.h"
       
    29 
       
    30 // forward class
       
    31 class MCallBackPhoneHander;
       
    32 /**
       
    33  * \class CATSIMCard 
       
    34  *
       
    35  * CATSIMCard inherits from the CAtCommandBase class. 
       
    36  * This class transmits the AT Command in order to get SIM card status 
       
    37  * in the phone, using a standard AT command : AT+CCID=?
       
    38  */
       
    39 class CATSIMCard : public CAtCommandBase
       
    40 {
       
    41 public:
       
    42 	static CATSIMCard* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    43 		                    CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    44 	/**
       
    45 	 * Destructor
       
    46 	 *
       
    47 	 */
       
    48 	~CATSIMCard();
       
    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 	/**
       
    67 	 * Get error value executed AT Command
       
    68 	 */
       
    69 	TInt GetErrorValue();
       
    70 	/**
       
    71 	 * Start this request
       
    72 	 */
       
    73 	virtual void StartRequest();
       
    74 	
       
    75 protected:
       
    76 	/**
       
    77 	 * Constructor
       
    78 	 *
       
    79 	 * @param aGloblePhone
       
    80 	 * @param aCtsyDispatcherCallback
       
    81 	 */
       
    82 	CATSIMCard(CGlobalPhonemanager& aGloblePhone, 
       
    83 		       CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    84 	/**
       
    85 	 * 2nd Constructor
       
    86 	 */
       
    87 	void ConstructL();
       
    88 private:
       
    89 	TInt iError;
       
    90 };
       
    91 #endif