diff -r 630d2f34d719 -r 07a122eea281 cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/atnetworkregstatuschange.h --- a/cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/atnetworkregstatuschange.h Tue Aug 31 16:23:08 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ -// 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 atnetworkregstatuschange.h -// AT command definition -// This file defines the AT command used to Notify the phones current network -//registration status.. -// -#ifndef __ATNETWORKREGSTATUSCHANGE_H__ -#define __ATNETWORKREGSTATUSCHANGE_H__ - -//system include - -//user include -#include "atcommandbase.h" - -/** - * CATNetworkRegStatusChange inherits from the CAtCommandBase class. - * AT command to Notify the phones current network - * registration status. - * This class transmits the following commands: +CREG: - */ -class CATNetworkRegStatusChange : public CAtCommandBase - { -public: - static CATNetworkRegStatusChange* NewL(CGlobalPhonemanager& aGloblePhone, - CCtsyDispatcherCallback& aCtsyDispatcherCallback); - static CATNetworkRegStatusChange* NewLC(CGlobalPhonemanager& aGloblePhone, - CCtsyDispatcherCallback& aCtsyDispatcherCallback); - /** - * Destructor - * - */ - virtual ~CATNetworkRegStatusChange(); - /** - * Virtual function. Inherited from CAtCommandBase - * Start Execute AT Command - */ - virtual void ExecuteCommand(){}; - /** - * Parses the +CGREG unsolicited string from the modem. - * An example response would be '+CREG: 2' where the value denotes the - * current registration status. - * If parsing succeeds then aRegStatus is updated. - * - * Virtual function. Inherited from CAtCommandBase - * @param aResponseBuf Line buf reading from baseband - */ - virtual void ParseResponseL(const TDesC8& aResponseBuf); - /** - * Will be called by AT Manager whenever a event was triggered - * - * @param aEventSource - * @param aStatus - */ - virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus); - /** - * - * - */ - void Enable(); - /** - * - * - */ - void Disable(); - - -protected: - /** - * Constructor - * - * @param aGloblePhone - * @param aCtsyDispatcherCallback - */ - CATNetworkRegStatusChange(CGlobalPhonemanager& aGloblePhone, - CCtsyDispatcherCallback& aCtsyDispatcherCallback); - /** - * 2nd Constructor - * This function must be called in his subtype class for - * creating instance of class CRespondBufParser - */ - void ConstructL(); - -private: - /** - * - * - */ - RMobilePhone::TMobilePhoneRegistrationStatus iRegistrationStatus; - /* - * The return value of AT command executed - */ - TInt iError; - - }; - -#endif //__ATNETWORKREGSTATUSCHANGE_H__