locationmgmt/networkgateway/test/netprotocoltest/inc/lbsnetgatewayprotocoltest.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 // Header file for the 'stub' network protocol module used in
       
    15 // the Network Gateway unit tests.
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalTechnology
       
    22  @released
       
    23 */
       
    24 
       
    25 #ifndef LBSNETGATEWAYPROTOCOLTEST_H_
       
    26 #define LBSNETGATEWAYPROTOCOLTEST_H_
       
    27 
       
    28 #include <e32base.h>
       
    29 #include "lbsnetgatewayprotocoltestapi.h"
       
    30 
       
    31 
       
    32 /** The test/skeleton implementation of CLbsNetworkProtocol
       
    33 
       
    34 The uid for this implementation is 0x1111E193.
       
    35 */
       
    36 class CTestLbsNetworkProtocol : public CLbsNetworkProtocolBase2,
       
    37 								public MNetGatewayProtocolTestObserver
       
    38 	{
       
    39 	
       
    40 public:
       
    41 	static CTestLbsNetworkProtocol* New0L(TAny* aData);
       
    42 	static CTestLbsNetworkProtocol* New1L(TAny* aData);
       
    43 	static CTestLbsNetworkProtocol* New2L(TAny* aData);
       
    44 	static CTestLbsNetworkProtocol* New3L(TAny* aData);
       
    45 	static CTestLbsNetworkProtocol* New4L(TAny* aData);
       
    46 	static CTestLbsNetworkProtocol* New5L(TAny* aData);
       
    47 	static CTestLbsNetworkProtocol* New6L(TAny* aData);
       
    48 	static CTestLbsNetworkProtocol* New7L(TAny* aData);
       
    49 	static CTestLbsNetworkProtocol* New8L(TAny* aData);
       
    50 	static CTestLbsNetworkProtocol* New9L(TAny* aData);
       
    51 	// 10 entry points for roaming PM
       
    52 	static CTestLbsNetworkProtocol* New10L(TAny* aData);
       
    53 	static CTestLbsNetworkProtocol* New11L(TAny* aData);
       
    54 	static CTestLbsNetworkProtocol* New12L(TAny* aData);
       
    55 	static CTestLbsNetworkProtocol* New13L(TAny* aData);
       
    56 	static CTestLbsNetworkProtocol* New14L(TAny* aData);
       
    57 	static CTestLbsNetworkProtocol* New15L(TAny* aData);
       
    58 	static CTestLbsNetworkProtocol* New16L(TAny* aData);
       
    59 	static CTestLbsNetworkProtocol* New17L(TAny* aData);
       
    60 	static CTestLbsNetworkProtocol* New18L(TAny* aData);
       
    61 	static CTestLbsNetworkProtocol* New19L(TAny* aData);
       
    62 
       
    63 	
       
    64 private:
       
    65 	static CTestLbsNetworkProtocol* NewL(TUint aModuleIndex, TAny* aData);
       
    66 	
       
    67 	~CTestLbsNetworkProtocol();
       
    68 	
       
    69 public:
       
    70 	// Implemented functions from CLbsNetworkProtocolBase2
       
    71 	void RespondPrivacyRequest(const TLbsNetSessionId& aSessionId,
       
    72 							   const TLbsPrivacyResponse& aResponse,
       
    73 							   TInt aReason);
       
    74 	
       
    75 	void RespondLocationRequest(const TLbsNetSessionId& aSessionId,
       
    76 								TInt  aReason,
       
    77 								const TPositionInfoBase& aPosInfo);
       
    78 
       
    79 	void RequestTransmitLocation(const TLbsNetSessionId& aSessionId,
       
    80 								 const TDesC& aDestination,
       
    81 								 TInt aPriority,
       
    82 								 const TLbsNetPosRequestOptionsBase& aOptions);
       
    83 									
       
    84 	void CancelTransmitLocation(const TLbsNetSessionId& aSessionId,
       
    85 								TInt  aReason);
       
    86 	
       
    87 	void RequestSelfLocation(const TLbsNetSessionId& aSessionId,
       
    88 							const TLbsNetPosRequestOptionsBase& aOptions);	
       
    89 	
       
    90 	void CancelSelfLocation(const TLbsNetSessionId& aSessionId,
       
    91 							TInt  aReason);
       
    92 	
       
    93 	void RequestNetworkLocation(const TLbsNetSessionId& aSessionId,
       
    94 								const TLbsNetPosRequestOptionsBase& aOptions);	
       
    95 	
       
    96 	void CancelNetworkLocation(const TLbsNetSessionId& aSessionId,
       
    97 								TInt  aReason);
       
    98 	
       
    99 	void AdviceSystemStatus(TLbsSystemStatus aStatus);
       
   100 	
       
   101 	// Implemented functions from CLbsNetworkProtocolBase2
       
   102 	void CancelExternalLocation(const TLbsNetSessionId& aSessionId,
       
   103 									TInt aReason);
       
   104 	// Implemented functions from CLbsNetworkProtocolBase2
       
   105 	void RequestAssistanceData(TLbsAsistanceDataGroup aDataRequestMask,
       
   106 							   const TLbsNetSessionIdArray& aSessionIdArray);
       
   107 	
       
   108 	// Implemented functions from MNetGatewayProtocolTestObserver
       
   109 	void ProcessNetProtocolMessage(const TNetGatewayMsg& aMessage);
       
   110 
       
   111 private:
       
   112 
       
   113 	CTestLbsNetworkProtocol(TUint aModuleIndex, TLbsNetProtocolModuleParams& aParams);
       
   114 	void ConstructL();
       
   115 	
       
   116 private:
       
   117 	MLbsNetworkProtocolObserver& iObserver;
       
   118 	RNetGatewayProtocolTestChannel iTestChannel;
       
   119 	TUint iModuleIndex;
       
   120 
       
   121 	};
       
   122 
       
   123 #endif // LBSNETGATEWAYPROTOCOLTEST_H_
       
   124 
       
   125