lbstest/lbstestproduct/lbsextendedmtlr/inc/ctlbsextendedmtlrstep.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 // Copyright (c) 2007-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 // @file ctlbsextendedmtlrserver.h
       
    15 // This contains the header file for LBS Extended PM  MTLR Test Step Base
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __CT_LBS_EXTENDED_MTLR_STEP_H__
       
    20 #define __CT_LBS_EXTENDED_MTLR_STEP_H__
       
    21 #include <test/testexecutestepbase.h>
       
    22 #include <lbs/lbsnetcommon.h>
       
    23 #include <lbs/test/ctlbsagpsmoduleeventlistener.h>
       
    24 
       
    25 #include "ctlbsextendedmtlrserver.h"
       
    26 
       
    27 /** Must be the Id of the protool module used for the test */
       
    28 const TUid KRequestUid = {0x10285AB7}; // the extended protcol module!
       
    29 /** Delta timout value used in all tests */
       
    30 const TInt KDelta = 2.0 * 1000 * 1000;	//2 seconds
       
    31 
       
    32 class CT_LbsExtendedMTLRStep : public CTestStep, MT_AgpsModuleEventHandler
       
    33 {
       
    34 
       
    35 public:
       
    36 	virtual ~CT_LbsExtendedMTLRStep();
       
    37 	
       
    38 	virtual TVerdict doTestStepPreambleL();
       
    39 	virtual TVerdict doTestStepPostambleL();
       
    40 
       
    41 protected:
       
    42 	CT_LbsExtendedMTLRStep(CT_LbsExtendedMTLRServer& aParent);
       
    43 	void ConstructL();
       
    44 	
       
    45 private: // from MT_AgpsModuleEventHandler
       
    46 	void OnSetGpsOptions(const TLbsGpsOptions& aGpsOptions);
       
    47 
       
    48 	
       
    49 private:
       
    50 	RPointerArray<TLbsGpsOptions> iExpectedModuleGpsOptions;
       
    51 	TInt iExpectedModuleGpsOptionsIndex;
       
    52 	CT_AgpsModuleEventListener* iAgpsModuleEventListener;
       
    53 	
       
    54 protected:
       
    55 	CT_LbsExtendedMTLRServer& iParent;
       
    56 };
       
    57 
       
    58 struct SData			
       
    59 	{
       
    60 	TLbsNetSessionId sessionId;
       
    61 	TVerdict response;
       
    62 	};
       
    63 
       
    64 
       
    65 #endif // __CT_LBS_EXTENDED_MTLR_STEP_H__