|
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_EARLY_COMPLETE_H__ |
|
19 #define __CT_LBS_EARLY_COMPLETE_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 #include "lbs/test/ctlbsagpshandler.h" |
|
32 |
|
33 // Literals used |
|
34 _LIT(KLbsATAEarlyComplete, "LbsATAEarlyComplete"); |
|
35 |
|
36 class CT_LbsATAEarlyComplete : public CT_LbsHybridMOLRStep, public MPosServerObserver, MT_ResponseObserver |
|
37 { |
|
38 public: |
|
39 ~CT_LbsATAEarlyComplete(); |
|
40 |
|
41 static CT_LbsATAEarlyComplete* New(CT_LbsHybridMOLRServer& aParent); |
|
42 virtual TVerdict doTestStepL(); |
|
43 virtual TVerdict doTestStepPreambleL(); |
|
44 virtual TVerdict doTestStepPostambleL(); |
|
45 |
|
46 // MPosServerObserver |
|
47 void OnGetLastKnownPosition(TInt32 aErr, const TPositionInfoBase& aPosInfo); |
|
48 void OnNotifyPositionUpdate(TInt32 aErr, const TPositionInfoBase& aPosInfo); |
|
49 |
|
50 // from MT_ResponseObserver |
|
51 virtual void ProcessAGpsResponseMessage(const TT_LbsAGpsResponseMsg::TModuleResponseType aResponse); |
|
52 |
|
53 protected: |
|
54 CT_LbsATAEarlyComplete(CT_LbsHybridMOLRServer& aParent); |
|
55 void ConstructL(); |
|
56 |
|
57 // Communication channel between A-Gps module and Test Harness |
|
58 CT_LbsAGpsHandler* iAGpsHandler; |
|
59 |
|
60 private: |
|
61 enum TState |
|
62 { |
|
63 EInitializing, |
|
64 EGotFirstPosition, |
|
65 EGotCompleteRequestPosition, |
|
66 EDone |
|
67 }; |
|
68 |
|
69 TState iState; |
|
70 |
|
71 TLbsNetSessionId iSessionId; |
|
72 }; |
|
73 |
|
74 #endif // __CT_LBS_EARLY_COMPLETE_H__ |
|
75 |