networkprotocolmodules/suplprotocolmodule/SuplProtocol/inc/suplcellinfohandler.h
author Shabe Razvi <shaber@symbian.org>
Mon, 08 Feb 2010 16:45:04 +0000
changeset 1 d9c0c077fd9e
parent 0 9cfd9a3ee49c
permissions -rw-r--r--
Bug 1628 - suplproxyprotocolmodule\group\bld.inf refers to missing bld.inf files

// 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