|
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 // This contains the header file for Location Data Source Tests |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __CT_LBS_UEBASED_MOLR_SELF_INTERNAL_VALUE_H__ |
|
19 #define __CT_LBS_UEBASED_MOLR_SELF_INTERNAL_VALUE_H__ |
|
20 |
|
21 // LBS includes. |
|
22 #include <lbs.h> |
|
23 #include <lbscommon.h> |
|
24 #include <lbs/lbsprivacycontroller.h> |
|
25 |
|
26 // LBS test includes. |
|
27 #include "ctlbshybridmolrstep.h" |
|
28 #include <lbs/test/lbsnetprotocolproxy.h> |
|
29 #include <lbs/test/posserverwatch.h> |
|
30 |
|
31 // Literals used |
|
32 _LIT(KLbsUEBasedMOLRSelfInternalValueTest, "LbsUEBasedMOLRSelfInternalValueTest"); |
|
33 |
|
34 const TInt KMinHorizontalAccBis = 40.0; |
|
35 const TInt KMinVerticalAccBis = 900.0; |
|
36 const TInt KDefaultMaxFixTimeBis = 130*1000*1000; |
|
37 |
|
38 class CT_LbsUEBasedMOLRSelfInternalValueTest : public CT_LbsHybridMOLRStep, public MPosServerObserver |
|
39 { |
|
40 public: |
|
41 ~CT_LbsUEBasedMOLRSelfInternalValueTest(); |
|
42 |
|
43 static CT_LbsUEBasedMOLRSelfInternalValueTest* New(CT_LbsHybridMOLRServer& aParent); |
|
44 virtual TVerdict doTestStepL(); |
|
45 |
|
46 // MPosServerObserver |
|
47 void OnGetLastKnownPosition(TInt32 aErr, const TPositionInfoBase& aPosInfo); |
|
48 void OnNotifyPositionUpdate(TInt32 aErr, const TPositionInfoBase& aPosInfo); |
|
49 |
|
50 protected: |
|
51 CT_LbsUEBasedMOLRSelfInternalValueTest(CT_LbsHybridMOLRServer& aParent); |
|
52 void ConstructL(); |
|
53 |
|
54 private: |
|
55 enum TState |
|
56 { |
|
57 EInitializing, |
|
58 ERefLocReceived, |
|
59 EGpsLocReceived |
|
60 }; |
|
61 |
|
62 TState iState; |
|
63 |
|
64 TLbsNetSessionId iSessionId; |
|
65 }; |
|
66 |
|
67 #endif //__CT_LBS_UEBASED_MOLR_H__ |
|
68 |