networkprotocolmodules/networkprotocolmodule/LbsNetSim/inc/lbsnetsim.h
changeset 36 b47902b73a93
parent 0 9cfd9a3ee49c
equal deleted inserted replaced
35:a2efdd544abf 36:b47902b73a93
       
     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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19  @test
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef LBSNETSIM_H
       
    24 #define LBSNETSIM_H
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 #include <lbs/lbsassistancedatabase.h>
       
    29 #include <lbs/lbsassistancereferencelocation.h>
       
    30 #include <lbs/lbsnetcommon.h>
       
    31 #include <lbs/lbsnetprotocolbase.h>
       
    32 #include <lbs/lbsloccommon.h>
       
    33 
       
    34 // The name of the server
       
    35 _LIT(KLbsNetSimServerName, "LbsNetworkSimulatorServer");
       
    36 _LIT(KLBSNetSimServerBinary, "lbsnetsim.exe");
       
    37 
       
    38 // The server UID
       
    39 const TInt32 KLbsNetSimServerUid = 0x1028224A;
       
    40 
       
    41 // Session type
       
    42 enum ESessionType
       
    43 	{
       
    44 	ETestHandler = 0, // Session is Test API
       
    45 	EGatewayHandler = 1, // Session is Gateway API
       
    46 	};
       
    47 	
       
    48 // Publish & Subscribe information for StepMode
       
    49 // Secure Id of client
       
    50 const TInt32 KLbsNetSimClient = 0x101F7784;
       
    51 // The publish and subscribe key
       
    52 const TInt32 KLbsStepModeKey = 0x01;
       
    53 	
       
    54 // Callback types
       
    55 enum ECallbackTypes
       
    56 	{
       
    57 	ENotificationConnect = 0,
       
    58 	ENotificationConnectCancel,
       
    59 	ENotificationDisconnect,
       
    60 	ENotificationDisconnectCancel,
       
    61 	ENotificationRegisterLcsMoLr,
       
    62 	ENotificationRegisterLcsMoLrCancel,
       
    63 	ENotificationMeasurementControlLocation,
       
    64 	ENotificationMeasurementControlLocationCancel,
       
    65 	ENotificationReleaseLcsMoLr,
       
    66 	ENotificationReleaseLcsMoLrCancel,
       
    67 	ENotificationMeasurementReport,
       
    68 	ENotificationMeasurementReportCancel,
       
    69 	ENotificationMeasurementReportRequestMoreAssitanceData,
       
    70 	ENotificationMeasurementReportRequestMoreAssitanceDataCancel,
       
    71 	ENotificationMeasurementReportControlFailure,
       
    72 	ENotificationMeasurementReportControlFailureCancel,	
       
    73 	ENotificationFacilityLcsMoLrResult,
       
    74 	ENotificationFacilityLcsMoLrResultCancel,
       
    75 	};
       
    76 
       
    77 // Messages
       
    78 enum ESessionMessages
       
    79 	{
       
    80 		// Standard Messages
       
    81 		EInitialise = 0,
       
    82 		ECallbacks,
       
    83 		
       
    84 		// Gatweay messages
       
    85 		EGWRegisterLcsMoLr = 1000,
       
    86 		EGWMeasurementReportLocation = 1001,
       
    87 		EGWMeasurementReportLocationCancel = 1002,
       
    88 		EGWReleaseLcsMoLr = 1003,
       
    89 		EGWMeasurementControlFailure = 1004,
       
    90 		EGWRequestMoreAssistanceData = 1005,
       
    91 		EGWNotificationMeasurementControlLocation = 1006,
       
    92 		EGWNotificationMeasurementControlLocationCancel = 1007,
       
    93 		EGWNotificationRegisterLcsLocation = 1008,
       
    94 		EGWNotificationRegisterLcsLocationCancel = 1009,
       
    95 		EGWReleaseLcsLocationNotification = 1010,
       
    96 		EGWNotificationCancelPrivacy = 1011,
       
    97 		EGWNotificationCancelPrivacyCancel = 1012,
       
    98 		EGWNotificationNetworkGone = 1013,
       
    99 		EGWNotificationNetworkGoneCancel = 1014,
       
   100 		EGWNotificationResetAssistanceData = 1015,
       
   101 		EGWNotificationResetAssistanceDataCancel = 1016,
       
   102 		
       
   103 		// Test Messages
       
   104 		ETSetReferenceLocation = 2000,
       
   105 		ETSetReferenceLocationData = 2002,
       
   106 		ETSetResponseTime = 2003,
       
   107 		ETSetResponseError = 2004,
       
   108 		ETSetDefaultAssitanceDataFilter = 2005,
       
   109 		ETSetMoreDefaultAssitanceDataFilter = 2006,
       
   110 		ETClearAssitanceDataFilters = 2007,
       
   111 		ETSetAssistanceDataProvider = 2008,
       
   112 		ETSetEmergenyStatus = 2009,
       
   113 		ETSetRoamingStatus = 2010,
       
   114 		ETSetRequestQuality = 2011,
       
   115 		ETSetStepMode = 2012,
       
   116 		ETReleaseLcsLocationNotification = 2013,
       
   117 		ETReleaseLcsLocationNotificationCancel = 2014,
       
   118 		ETStartNetworkLocationRequest = 2015,
       
   119 		ETStartNetworkLocationRequestCancel = 2016,
       
   120 		ETStepMode = 2017,
       
   121 		ETStepModeCancel = 2018,
       
   122 		ETSendResetAssistanceData = 2019,
       
   123 	};
       
   124 
       
   125 #endif // LBSNETSIM_H