|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CTLBSSIMULATIONPSYPOSTP500_H_ |
|
20 #define CTLBSSIMULATIONPSYPOSTP500_H_ |
|
21 |
|
22 #include "ctlbsportedstepbase.h" |
|
23 |
|
24 class CT_LbsSimulationPsyPosTp500 : public CT_LbsPortedStepBase |
|
25 { |
|
26 public: |
|
27 |
|
28 CT_LbsSimulationPsyPosTp500(CT_LbsServer& aParent, TInt aIndex); |
|
29 |
|
30 // From CT_LbsPortedStepBase |
|
31 virtual void StartL(); |
|
32 |
|
33 protected: |
|
34 |
|
35 // From CT_LbsPortedStepBase |
|
36 virtual void CloseTest(); |
|
37 |
|
38 private: |
|
39 |
|
40 TPtrC GetIndexNameL(TInt aIndex) const; |
|
41 void RunTestsL(TInt aIndex); |
|
42 void SetPartialUpdateL(TBool aPartial, RPositioner& aPositioner); |
|
43 TBool IsPositionInfoPartial(const TPositionInfo& aPosInfo); |
|
44 void SetCommonDataSetL(const TBool aCommonDataSet) const; |
|
45 void GetCommonDataSetL(TInt& aCommonDataSet) const; |
|
46 void OpenPositionersLC(RPositioner& aPositioner); |
|
47 void WaitForPositionChange(const TBool aNmea, const TInt aTime); |
|
48 void CheckPositionDataL(const TBool aNmea, |
|
49 const TBool aSimultaneousRequest, const TPosition& aPos1, |
|
50 const TPosition& aPos2); |
|
51 void PerformStaggeredRequestsL(RPositioner& aPositioner, |
|
52 const TBool aIsNmea, const TBool aCommonDataSet, |
|
53 const TBool aSwitchDataMode, TPositionInfo& aPosInfo1, |
|
54 TPositionInfo& aPosInfo2); |
|
55 void PerformSimultaneousRequestsL(RPositioner& aPositioner, |
|
56 TPositionInfo& aPosInfo1, TPositionInfo& aPosInfo2, |
|
57 const TInt aError); |
|
58 |
|
59 void TestMultipleClientAccessL(const TBool aIsNmea, |
|
60 const TBool aRequestInProgress = EFalse, |
|
61 const TBool aCommonDataSet = ETrue, |
|
62 const TBool aSwitchDataMode = EFalse); |
|
63 void TestMultipleClientChangeDataModeL(const TBool aIsNmea, |
|
64 const TBool aCommonDataSet, const TBool aSwitchDataMode = ETrue); |
|
65 |
|
66 void TestMultipleClientPartialFixL(); |
|
67 |
|
68 void TestNmeaPartialFixL(); |
|
69 |
|
70 private: |
|
71 TInt iIndex; |
|
72 TInt iOldTrpMode; |
|
73 }; |
|
74 |
|
75 #endif /* CTLBSSIMULATIONPSYPOSTP500_H_ */ |