locationmgmt/networklocationmgr/inc/lbsnetlocmanresponsehandler.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 // netlocmanresponsehandler.h
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21  @released
       
    22 */
       
    23 
       
    24 #ifndef __LBSNETLOCMANRESPHANDLER_H__
       
    25 #define __LBSNETLOCMANRESPHANDLER_H__
       
    26 
       
    27 //****************************************************************
       
    28 // Includes
       
    29 //****************************************************************
       
    30 //System
       
    31 #include <e32base.h>
       
    32 
       
    33 //LBS
       
    34 #include "LbsInternalInterface.h"
       
    35 #include "lbsreffnpint.h"
       
    36 #include "lbsnetlocmancompletionhandler.h"
       
    37 #include "LbsLogger.h"
       
    38 
       
    39 //****************************************************************
       
    40 // Classes
       
    41 //****************************************************************
       
    42 class CNetLocManLogic; //forward declaration
       
    43 
       
    44 /** This class implements the handling of a location responses from the 
       
    45 NetworkGateway, which it publises to the LocServer.
       
    46 
       
    47 @internalComponent
       
    48 @released
       
    49 */
       
    50 class CNetLocManResponseHandler : public CActive,
       
    51 									public MLbsLocSessionCompleteObserver
       
    52 	{
       
    53 public:
       
    54 	static CNetLocManResponseHandler* NewL(CNetLocManLogic& aNetLocMan);
       
    55 	~CNetLocManResponseHandler();
       
    56 	
       
    57 	void StartGettingRequests();
       
    58 
       
    59 protected:
       
    60 	CNetLocManResponseHandler(CNetLocManLogic& aNetLocMan); 
       
    61 	void ConstructL();
       
    62 
       
    63 protected: // From MLbsLocSessionCompleteObserver
       
    64 	void OnSessionComplete(TInt aStatus, const TLbsNetSessionIdInt& aSessionId);
       
    65 	
       
    66 protected:
       
    67 	// From CActive
       
    68 	virtual void RunL();
       
    69 	virtual void DoCancel();
       
    70 	virtual TInt RunError(TInt aError);
       
    71 
       
    72 private:
       
    73 	void ReportPosUpdate(TInt aStatus, TUid SessionOwner,
       
    74 				TPositionInfo& aPosInfo, TTime aTargetTime);
       
    75 				
       
    76 private:
       
    77 	RLbsNetworkPositionUpdates 	iPositionUpdate;
       
    78 	CNetLocManCompletionHandler*	iCompletionHandler;
       
    79 
       
    80 	CNetLocManLogic&				iNetLocMan;
       
    81 	
       
    82 	// Logging
       
    83 	RLbsLogger						iLogger;
       
    84 	};
       
    85 
       
    86 #endif //__LBSNETLOCMANRESPHANDLER_H__
       
    87