networkprotocolmodules/suplprotocolmodule/SuplProtocol/inc/suplcellinfohandler.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Definition of cell info handler sub-component of SUPL Protocol Module
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21  @deprecated
       
    22 */
       
    23 
       
    24 #ifndef SUPLCELLINFOHANDLER_H
       
    25 #define SUPLCELLINFOHANDLER_H
       
    26 
       
    27 #include <etelmm.h>
       
    28 
       
    29 class MSuplNetworkInfoObserver;
       
    30 
       
    31 /** CSuplCellInfoHandler
       
    32 
       
    33 This class uses a previously opened RMobilePhone subsession
       
    34 reference to track changes to ETEL's cell information. The
       
    35 observed values are reported back to the observer (tipically, the
       
    36 SUPL Protocol Manager, who needs to know the Timing Advance value)
       
    37 */
       
    38 NONSHARABLE_CLASS(CSuplCellInfoHandler) : public CActive
       
    39 	{
       
    40 public:
       
    41 	static CSuplCellInfoHandler* NewL(MSuplNetworkInfoObserver& aObserver, const RMobilePhone& aCellPhone);
       
    42 	~CSuplCellInfoHandler();
       
    43 
       
    44 	void StartGettingCellInfo();
       
    45 
       
    46 private:
       
    47 
       
    48 	CSuplCellInfoHandler(MSuplNetworkInfoObserver& aObserver, const RMobilePhone& aCellPhone);
       
    49 	void ConstructL();
       
    50 
       
    51 	void RunL();
       
    52 	void DoCancel();
       
    53 	TInt RunError(TInt aError);
       
    54 
       
    55 	void MonitorCellInfoChange();
       
    56 
       
    57 private:
       
    58 
       
    59 	MSuplNetworkInfoObserver& iObserver;
       
    60 	const RMobilePhone& iCellPhone;
       
    61 	
       
    62 	RMobilePhone::TMobilePhoneCellInfoV9 iCellInfo;
       
    63 	RMobilePhone::TMobilePhoneCellInfoV9Pckg iCellInfoPckg;
       
    64 	
       
    65 	TBool iMonitoring;
       
    66 	};
       
    67 
       
    68 #endif // SUPLCELLINFOHANDLER_H