networkprotocolmodules/suplprotocolmodule/SuplProtocol/inc/suplcellinfohandler.h
author Shabe Razvi <shaber@symbian.org>
Fri, 28 May 2010 16:41:55 +0100
changeset 33 1ed175a5c849
parent 0 9cfd9a3ee49c
permissions -rw-r--r--
Remove references to missing bld.inf files, to fix Bug 2680

// Copyright (c) 2008-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:
// Definition of cell info handler sub-component of SUPL Protocol Module
// 
//

/**
 @file
 @internalTechnology
 @deprecated
*/

#ifndef SUPLCELLINFOHANDLER_H
#define SUPLCELLINFOHANDLER_H

#include <etelmm.h>

class MSuplNetworkInfoObserver;

/** CSuplCellInfoHandler

This class uses a previously opened RMobilePhone subsession
reference to track changes to ETEL's cell information. The
observed values are reported back to the observer (tipically, the
SUPL Protocol Manager, who needs to know the Timing Advance value)
*/
NONSHARABLE_CLASS(CSuplCellInfoHandler) : public CActive
	{
public:
	static CSuplCellInfoHandler* NewL(MSuplNetworkInfoObserver& aObserver, const RMobilePhone& aCellPhone);
	~CSuplCellInfoHandler();

	void StartGettingCellInfo();

private:

	CSuplCellInfoHandler(MSuplNetworkInfoObserver& aObserver, const RMobilePhone& aCellPhone);
	void ConstructL();

	void RunL();
	void DoCancel();
	TInt RunError(TInt aError);

	void MonitorCellInfoChange();

private:

	MSuplNetworkInfoObserver& iObserver;
	const RMobilePhone& iCellPhone;
	
	RMobilePhone::TMobilePhoneCellInfoV9 iCellInfo;
	RMobilePhone::TMobilePhoneCellInfoV9Pckg iCellInfoPckg;
	
	TBool iMonitoring;
	};

#endif // SUPLCELLINFOHANDLER_H