common/tools/ats/smoketest/lbs/lbsclient/inc/ctlbsclientstep.h
changeset 748 e13acd883fbe
child 872 17498133d9ad
equal deleted inserted replaced
747:76f9aaeefbab 748:e13acd883fbe
       
     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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // @file CT_LbsClientStep.h
       
    15 // This contains the header file for LBS Client Test Step Base
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __CT_LBS_CLIENT_STEP_H__
       
    20 #define __CT_LBS_CLIENT_STEP_H__
       
    21 
       
    22 #include <testexecutestepbase.h>
       
    23 #include <lbs.h>
       
    24 #include <lbsnetsimtest.h>
       
    25 
       
    26 #include "ctlbsclientserver.h"
       
    27 
       
    28 //todo: is this a sensible place to put this as it's used by many teststeps?
       
    29 const TTimeIntervalMicroSeconds32 delay10Seconds = 10000000;
       
    30 
       
    31 
       
    32 class CT_LbsClientStep : public CTestStep
       
    33 {
       
    34 
       
    35 public:
       
    36 	virtual ~CT_LbsClientStep();
       
    37 
       
    38 	virtual TVerdict doTestStepPreambleL();
       
    39 	virtual TVerdict doTestStepPostambleL();
       
    40 
       
    41 protected:
       
    42 	CT_LbsClientStep(CT_LbsClientServer& aParent);
       
    43 
       
    44 
       
    45 	// Carryout a notify position update.
       
    46 	// Must have a connect server, and a open positioner
       
    47 	// also the pos info array is appened to
       
    48 	TInt DoNotifyUpdateL(TPositionInfoBase& aPosInfo);
       
    49 	
       
    50 	TInt DoLastKnownPosL(TPositionInfoBase& aPosInfo);
       
    51 
       
    52 	TInt OpenNetSim();
       
    53 	void SendResetAssistanceData(TLbsAssistanceDataGroup aMask);
       
    54 	void CloseNetSim();
       
    55 
       
    56 	CT_LbsClientServer& iParent;
       
    57 
       
    58 	RPositionServer iServer;
       
    59 	RPositioner iPositioner;
       
    60 
       
    61 	/** Net sim required for tests which invoke assistance data via AGPS module. */
       
    62 	RLbsNetSimTest iNetSim;
       
    63 	
       
    64 	/** Reference position used to setup Net sim and later verification. */
       
    65 	TPosition iRefPos;
       
    66 
       
    67 		
       
    68 private:
       
    69 	/**
       
    70 	Position call types - used by GetLocation() to determine which position update function to call
       
    71 
       
    72 	*/
       
    73 	enum _TPositionUpdateType
       
    74 		{
       
    75 		/** EDoNotifyPosUpdate - call NotifyPositionUpdate  */
       
    76 		EDoNotifyPosUpdate = 0,
       
    77 		/** EDoLastKnownPos - call GetLastKnownPosition */
       
    78 		EDoLastKnownPos = 0x01
       
    79 		};
       
    80 
       
    81 	TInt GetLocationL(TPositionInfoBase& aPosInfo, TUint32 aNotifyCallType);
       
    82 	
       
    83 };
       
    84 
       
    85 #endif // __CT_LBS_CLIENT_STEP_H__