cbsref/telephonyrefplugins/atltsy/atcommand/pktservice/inc/atgprsntwkregstatuschange.h
branchRCL_3
changeset 19 630d2f34d719
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cbsref/telephonyrefplugins/atltsy/atcommand/pktservice/inc/atgprsntwkregstatuschange.h	Tue Aug 31 16:23:08 2010 +0300
@@ -0,0 +1,108 @@
+// 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 atgprsntwkregstatus.h
+// AT command definition
+// This file defines the AT command used to Notify the phones current network
+//registration status..
+//
+
+#ifndef __ATGPRSNTWKREGSTATUSCHANGE_H
+#define __ATGPRSNTWKREGSTATUSCHANGE_H
+
+//system include
+
+//user include
+#include "atcommandbase.h"
+/**
+ * CATGprsNtwkRegStatusChange inherits from the CAtCommandBase class. 
+ * AT command to Notify the phones current network
+ * registration status.
+ * This class transmits the following commands: +CGREG:
+ */
+class CATGprsNtwkRegStatusChange : public CAtCommandBase
+	{
+public:
+	static CATGprsNtwkRegStatusChange* NewL(CGlobalPhonemanager& aGloblePhone,
+			                                CCtsyDispatcherCallback& aCtsyDispatcherCallback);
+	
+	static CATGprsNtwkRegStatusChange* NewLC(CGlobalPhonemanager& aGloblePhone,
+			                                 CCtsyDispatcherCallback& aCtsyDispatcherCallback);			                     	
+	/**
+	 * Destructor
+	 *
+	 */
+	virtual ~CATGprsNtwkRegStatusChange();
+	/**
+	 * 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 '+CGREG: 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
+	 */
+	CATGprsNtwkRegStatusChange(CGlobalPhonemanager& aGloblePhone,
+				               CCtsyDispatcherCallback& aCtsyDispatcherCallback);	
+	/**
+	 * 2nd Constructor
+	 * This function must be called in his subtype class for 
+	 * creating instance of class CRespondBufParser
+	 */
+	void ConstructL();
+	
+private:
+	/**
+	 * 
+	 * 
+	 */
+	RPacketService::TRegistrationStatus iRegistrationStatus;
+	/*
+	 * The return value of AT command executed 
+	 */
+	TInt iError;
+	};
+
+#endif