locationmgmt/networklocationmgr/inc/lbsnetlocmancompletionhandler.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 __LBSNETLOCMANCOMPLETIONHANDLER_H__
       
    25 #define __LBSNETLOCMANCOMPLETIONHANDLER_H__
       
    26 
       
    27 //****************************************************************
       
    28 // Includes
       
    29 //****************************************************************
       
    30 //System
       
    31 #include <e32base.h>
       
    32 
       
    33 //LBS
       
    34 #include "LbsInternalInterface.h"
       
    35 #include "lbsngnlmint.h"
       
    36 
       
    37 
       
    38 /** This class defines the handler for a session complete from the 
       
    39 NetworkGateway.
       
    40 
       
    41 @internalComponent
       
    42 @released
       
    43 */
       
    44 class MLbsLocSessionCompleteObserver
       
    45 	{
       
    46 public:
       
    47 	virtual void OnSessionComplete(TInt aStatus, const TLbsNetSessionIdInt& aSessionId) = 0;
       
    48 	};
       
    49 
       
    50 
       
    51 /** This class implements the handling of a location responses from the 
       
    52 NetworkGateway, which it publises to the LocServer.
       
    53 
       
    54 @internalComponent
       
    55 @released
       
    56 */
       
    57 class CNetLocManCompletionHandler : public CActive
       
    58 	{
       
    59 public:
       
    60 	static CNetLocManCompletionHandler* NewL(MLbsLocSessionCompleteObserver* aCompletionObserver);
       
    61 	~CNetLocManCompletionHandler();
       
    62 	
       
    63 	void StartMonitor();
       
    64 
       
    65 protected:
       
    66 	CNetLocManCompletionHandler(MLbsLocSessionCompleteObserver* aCompletionObserver); 
       
    67 	void ConstructL();
       
    68 
       
    69 	// From CActive
       
    70 	virtual void RunL();
       
    71 	virtual void DoCancel();
       
    72 	virtual TInt RunError(TInt aError);
       
    73 	
       
    74 private:
       
    75 	RLbsNetworkLocationResponses	iLocationResp;
       
    76 	MLbsLocSessionCompleteObserver* iCompletionObserver;
       
    77 	};
       
    78 
       
    79 #endif //__LBSNETLOCMANCOMPLETIONHANDLER_H__
       
    80