cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/atgetfdnsupport.h
changeset 49 f50f4094acd7
equal deleted inserted replaced
48:14460bf2a402 49:f50f4094acd7
       
     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 atgetfdnsupport.h
       
    15 // 
       
    16 
       
    17 #ifndef __ATGETFDNSUPPORT_H__
       
    18 #define __ATGETFDNSUPPORT_H__
       
    19 
       
    20 //user include
       
    21 #include "atcommandbase.h"
       
    22 
       
    23 
       
    24 /**
       
    25  * class CATGetFdnSupport 
       
    26  *
       
    27  * CATGetFdnSupport inherits from the CAtCommandBase class. 
       
    28  * This class transmits the AT+CPBS=? Command in order to get 
       
    29  * FDN support
       
    30  */
       
    31 class CATGetFdnSupport : public CAtCommandBase
       
    32 {
       
    33 public:
       
    34 	static CATGetFdnSupport* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    35 		                          CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    36 
       
    37 	/**
       
    38 	 * Destructor
       
    39 	 *
       
    40 	 */
       
    41 	~CATGetFdnSupport();
       
    42 
       
    43 	/**
       
    44 	 * Virtual function. Inherited from CAtCommandBase
       
    45 	 *  Start Execute AT Command
       
    46 	 */
       
    47 	virtual void ExecuteCommand();
       
    48 	/**
       
    49 	 * Get 
       
    50 	 */
       
    51 	TBool GetFdnSupport();
       
    52 	/**
       
    53 	 * Virtual function. Inherited from CAtCommandBase
       
    54 	 * @param aResponseBuf Line buf reading from baseband 
       
    55 	 */
       
    56 	virtual void ParseResponseL(const TDesC8& aResponseBuf);
       
    57 	/**
       
    58 	 * The return error value of AT command executed 
       
    59 	 */
       
    60 	TInt GetErrorValue();
       
    61 
       
    62 	virtual void StartRequest();
       
    63 protected:
       
    64 	/**
       
    65 	 * Constructor
       
    66 	 *
       
    67 	 * @param aGloblePhone
       
    68 	 * @param aCtsyDispatcherCallback
       
    69 	 */
       
    70 	CATGetFdnSupport(CGlobalPhonemanager& aGloblePhone, 
       
    71 		             CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    72 	/**
       
    73 	 * 2nd Constructor
       
    74 	 */
       
    75 	void ConstructL();
       
    76 private:
       
    77 	/*
       
    78 	 * iFdnSupport is ETrue if FDN was supported
       
    79 	 */
       
    80 	TBool iFdnSupport; 
       
    81 	/*
       
    82 	 * The return error value of AT command executed 
       
    83 	 */
       
    84 	TInt iError;
       
    85 	
       
    86 };
       
    87 #endif //__ATGETFDNSUPPORT_H__