diff -r 14460bf2a402 -r f50f4094acd7 cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/atgetfdnstatus.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/atgetfdnstatus.h Tue Jul 06 15:36:38 2010 +0300 @@ -0,0 +1,90 @@ +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// @file atgetfdnstatus.h +// + +#ifndef __ATGETFDNSTATUS_H__ +#define __ATGETFDNSTATUS_H__ + +//system include +#include +#include +//user include +#include "atcommandbase.h" + + +/** + * class CATGetFdnStatus + * + * CATGetFdnStatus inherits from the CAtCommandBase class. + * This class transmits the AT+CPBS? Command in order to get + * FDN status + */ +class CATGetFdnStatus : public CAtCommandBase +{ +public: + static CATGetFdnStatus* NewL(CGlobalPhonemanager& aGloblePhone, + CCtsyDispatcherCallback& aCtsyDispatcherCallback); + /** + * Destructor + * + */ + ~CATGetFdnStatus(); + + /** + * Virtual function. Inherited from CAtCommandBase + * Start Execute AT Command + */ + virtual void ExecuteCommand(); + /** + * Get + */ + TBool GetFdnStatus(); + /** + * Virtual function. Inherited from CAtCommandBase + * @param aResponseBuf Line buf reading from baseband + */ + virtual void ParseResponseL(const TDesC8& aResponseBuf); + /** + * The return error value of AT command executed + */ + TInt GetErrorValue(); + + virtual void StartRequest(); +protected: + /** + * Constructor + * + * @param aGloblePhone + * @param aCtsyDispatcherCallback + */ + CATGetFdnStatus(CGlobalPhonemanager& aGloblePhone, + CCtsyDispatcherCallback& aCtsyDispatcherCallback); + /** + * 2nd Constructor + */ + void ConstructL(); +private: + /* + * iFdnStatus is ETrue if FDN was activing + */ + TBool iFdnStatus; + /* + * The return error value of AT command executed + */ + TInt iError; + + +}; +#endif //__ATGETFDNSTATUS_H__