|
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 // @file ctlbshybridmolrstep.h |
|
15 // This contains the header file for LBS HYBRID MOLR Test Step Base |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef __CT_LBS_HYBRID_MOLR_STEP_H__ |
|
20 #define __CT_LBS_HYBRID_MOLR_STEP_H__ |
|
21 |
|
22 #include <test/testexecutestepbase.h> |
|
23 #include <lbs/lbsnetcommon.h> |
|
24 #include <lbs/test/ctlbsagpsmoduleeventlistener.h> |
|
25 |
|
26 #include "ctlbshybridmolrserver.h" |
|
27 |
|
28 /** Must be the Id of the protocol module used for the test */ |
|
29 const TUid KRequestUid = {0x10282293}; |
|
30 |
|
31 enum TExpectedApiBehaviour |
|
32 { |
|
33 EApiVariant1, |
|
34 EApiVariant2 |
|
35 }; |
|
36 |
|
37 |
|
38 class CT_LbsHybridMOLRStep : public CTestStep, MT_AgpsModuleEventHandler |
|
39 { |
|
40 |
|
41 public: |
|
42 virtual ~CT_LbsHybridMOLRStep(); |
|
43 |
|
44 virtual TVerdict doTestStepPreambleL(); |
|
45 virtual TVerdict doTestStepPostambleL(); |
|
46 |
|
47 protected: |
|
48 CT_LbsHybridMOLRStep(CT_LbsHybridMOLRServer& aParent); |
|
49 void ConstructL(); |
|
50 |
|
51 CT_LbsHybridMOLRServer& iParent; |
|
52 |
|
53 private: // from MT_AgpsModuleEventHandler |
|
54 void OnSetGpsOptions(const TLbsGpsOptions& aGpsOptions); |
|
55 |
|
56 private: |
|
57 RPointerArray<TLbsGpsOptions> iExpectedModuleGpsOptions; |
|
58 TInt iExpectedModuleGpsOptionsIndex; |
|
59 |
|
60 CT_AgpsModuleEventListener* iAgpsModuleEventListener; |
|
61 |
|
62 protected: |
|
63 TExpectedApiBehaviour iExpectedApiBehaviour; |
|
64 }; |
|
65 |
|
66 struct SData |
|
67 { |
|
68 TLbsNetSessionId sessionId; |
|
69 TVerdict response; |
|
70 }; |
|
71 |
|
72 |
|
73 #endif // __CT_LBS_HYBRID_MOLR_STEP_H__ |