networkprotocolmodules/networkprotocolmodule/LbsNetSim/inc/lbsnetsimtestobserver.h
changeset 36 b47902b73a93
parent 0 9cfd9a3ee49c
equal deleted inserted replaced
35:a2efdd544abf 36:b47902b73a93
       
     1 // Copyright (c) 2005-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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19  @test
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef LBSNETSIMTESTOBSERVER_H
       
    24 #define LBSNETSIMTESTOBSERVER_H
       
    25 
       
    26 #include <lbs/lbsnetprotocolbase.h>
       
    27 
       
    28 class MLbsNetSimTestObserver
       
    29 	{
       
    30 	public:
       
    31 		/**
       
    32 		Used in the NotifyError function.
       
    33 		*/
       
    34 		enum EFunction
       
    35 			{
       
    36 			EStartNetworkPrivacyRequest,
       
    37 			EStartNetworkLocationRequest,
       
    38 			};
       
    39 	
       
    40 		/**
       
    41 		Called when a client connects to the Gateway API
       
    42 		*/
       
    43 		virtual void Connected() = 0;
       
    44 		
       
    45 		/**
       
    46 		Called when a client disconnects from the Gateway API
       
    47 		*/
       
    48 		virtual void Disconnected() = 0;
       
    49 		
       
    50 		/**
       
    51 		Start of an MoLr (FROM: Gateway)
       
    52 		
       
    53 		@param aData The data to start the MoLr. If this is blank then we are starting an MoLr, if not then an X3P
       
    54 		*/
       
    55 		virtual void NotifyRegisterLcsMoLr(const TDesC& aData) = 0;
       
    56 		
       
    57 		/**
       
    58 		End of an MoLr (FROM: Gateway)
       
    59 		
       
    60 		@param aData The reason the MoLr ended
       
    61 		*/
       
    62 		virtual void NotifyReleaseLcsMoLr(TInt aReason) = 0;
       
    63 		
       
    64 		/**
       
    65 		A measurement control (TO: Gateway)
       
    66 		
       
    67 		@param aPosition	the position
       
    68 		@param aData		the assitance data
       
    69 		@param aQuality		the quality of the data
       
    70 		*/
       
    71 		virtual void NotifyMeasurementControlLocation(const TPositionInfo& aPosition, 
       
    72 													  const RLbsAssistanceDataBuilderSet& aData, 
       
    73 													  const TLbsNetPosRequestQuality& aQuality) = 0;
       
    74 		
       
    75 		/**
       
    76 		The response to a privacy request (FROM: Gateway)
       
    77 		
       
    78 		@param aResult the result
       
    79 		*/
       
    80 		virtual void NotifyReleaseLcsLocationNotification(const CLbsNetworkProtocolBase::TLbsPrivacyResponse& aResult) = 0;
       
    81 		
       
    82 		/**
       
    83 		The response to an MoLr (TO: Gateway)
       
    84 		
       
    85 		@param aReason the response code
       
    86 		@param aPosition the position
       
    87 		*/
       
    88 		virtual void NotifyFacilityLcsMoLrResult(TInt aReason, const TPositionInfo& aPosition) = 0;
       
    89 		
       
    90 		/**
       
    91 		The response to an MoLr (FROM: Gateway)
       
    92 		
       
    93 		@param aPosition the position
       
    94 		*/
       
    95 		virtual void NotifyMeasurementReportLocation(const TPositionInfo& aPosition) = 0;
       
    96 		
       
    97 		/**
       
    98 		A request for more assitance data (FROM: Gateway)
       
    99 		*/
       
   100 		virtual void NotifyMeasurementReportRequestMoreAssistanceData(const TLbsAssistanceDataGroup& aFilter) = 0;
       
   101 		
       
   102 		/**
       
   103 		A measurement report failed
       
   104 		
       
   105 		@param aReason The reason for failure
       
   106 		*/
       
   107 		virtual void NotifyMeasurementReportControlFailure(TInt aReason) = 0;
       
   108 		
       
   109 		/**
       
   110 		Used for giving errors
       
   111 		
       
   112 		@param aFunction The function that caused the error
       
   113 		@param aError The error
       
   114 		*/
       
   115 		virtual void NotifyError(EFunction aFunction, TInt aError) = 0;
       
   116 	};
       
   117 
       
   118 
       
   119 
       
   120 #endif // LBSNETSIMTESTOBSERVER_H