locationmgmt/networklocationmgr/inc/lbsnetlocmanrequesthandler.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 // Copyright (c) 2006-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 // netlocmanrequesthandler.h
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21  @released
       
    22 */
       
    23 
       
    24 #ifndef __LBSNETLOCMANREQHANDLER_H__
       
    25 #define __LBSNETLOCMANREQHANDLER_H__
       
    26 
       
    27 //****************************************************************
       
    28 // Includes
       
    29 //****************************************************************
       
    30 //System
       
    31 #include <e32base.h>
       
    32 
       
    33 //LBS
       
    34 #include "LbsInternalInterface.h"
       
    35 #include "lbsngnlmint.h"
       
    36 #include "lbstimer.h"
       
    37 
       
    38 //****************************************************************
       
    39 // Classes
       
    40 //****************************************************************
       
    41 class CNetLocManLogic; //forward declaration
       
    42 
       
    43 /** This class implements the handling of a location request from the 
       
    44 LocServer through the NetworkLocationManager onto the NetworkGateway.
       
    45 
       
    46 @internalComponent
       
    47 @released
       
    48 */
       
    49 class CNetLocManRequestHandler : public CActive, public MLbsCallbackTimerObserver
       
    50 	{
       
    51 public:
       
    52 	static CNetLocManRequestHandler* NewL(const RLbsPositionUpdateRequests::TChannelIdentifer& aChannel, CNetLocManLogic& aNetLocMan);
       
    53 	~CNetLocManRequestHandler();
       
    54 	void CancelRequestTimeout();
       
    55 	void StartGettingRequests();
       
    56 	
       
    57 protected:
       
    58 	CNetLocManRequestHandler(const RLbsPositionUpdateRequests::TChannelIdentifer& aChannel, CNetLocManLogic& aNetLocMan); 
       
    59 	void ConstructL();
       
    60 
       
    61 	// From CActive
       
    62 	virtual void RunL();
       
    63 	virtual void DoCancel();
       
    64 	virtual TInt RunError(TInt aError);
       
    65 	
       
    66 	//From MLbsCallbackTimerObserver
       
    67 	virtual void OnTimerEventL(TInt aTimerId);
       
    68 	virtual TInt OnTimerError(TInt aTimerId, TInt aError);
       
    69 
       
    70 	
       
    71 private:
       
    72 	RLbsPositionUpdateRequests::TChannelIdentifer iChannel;
       
    73 	RLbsPositionUpdateRequests 		iPosUpdateReq;
       
    74 	CNetLocManLogic&				iNetLocMan;
       
    75 	RLbsNetworkLocationRequests 	iLocationReq;
       
    76 	CLbsCallbackTimer*				iTimer;
       
    77 	};
       
    78 
       
    79 #endif //__LBSNETLOCMANREQHANDLER_H__
       
    80