|
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 Hybrid MoLr Tests |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __CT_LBS_HYBRID_UEBASED_MOLR_PARTIAL_H__ |
|
19 #define __CT_LBS_HYBRID_UEBASED_MOLR_PARTIAL_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 |
|
32 // Literals used |
|
33 _LIT(KLbsHybridUEBasedMOLRPartial, "LbsHybridUEBasedMOLRPartial"); |
|
34 |
|
35 class CT_LbsHybridUEBasedMOLRPartial : public CT_LbsHybridMOLRStep, public MPosServerObserver |
|
36 { |
|
37 public: |
|
38 ~CT_LbsHybridUEBasedMOLRPartial(); |
|
39 |
|
40 static CT_LbsHybridUEBasedMOLRPartial* New(CT_LbsHybridMOLRServer& aParent); |
|
41 virtual TVerdict doTestStepL(); |
|
42 |
|
43 // MPosServerObserver |
|
44 void OnGetLastKnownPosition(TInt32 aErr, const TPositionInfoBase& aPosInfo); |
|
45 void OnNotifyPositionUpdate(TInt32 aErr, const TPositionInfoBase& aPosInfo); |
|
46 |
|
47 protected: |
|
48 CT_LbsHybridUEBasedMOLRPartial(CT_LbsHybridMOLRServer& aParent); |
|
49 void ConstructL(); |
|
50 |
|
51 private: |
|
52 enum TState |
|
53 { |
|
54 EInitializing, |
|
55 EGpsPartialInitReceived, |
|
56 ERefLocReceived, |
|
57 EGpsPartialLocReceived, |
|
58 EGpsPartialEarlyReceived |
|
59 }; |
|
60 |
|
61 TState iState; |
|
62 |
|
63 TLbsNetSessionId iSessionId; |
|
64 }; |
|
65 |
|
66 #endif // __CT_LBS_HYBRID_UEBASED_MOLR_PARTIAL_H__ |
|
67 |