|
1 // Copyright (c) 2006-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 the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // @file ctlbsclientstepmodselect.h |
|
15 // This contains the header file for Capability Tests |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef __CT_LBS_CLIENT_STEP_MODSELECT_H__ |
|
20 #define __CT_LBS_CLIENT_STEP_MODSELECT_H__ |
|
21 |
|
22 #include "ctlbsclientstep.h" |
|
23 #include "ctlbsclientserver.h" |
|
24 #include <lbsnetsimtest.h> |
|
25 |
|
26 // Literals used |
|
27 _LIT(KLbsClientStep_ModSelect, "LbsClientStep_ModSelect"); |
|
28 |
|
29 class CT_LbsClientStep_ModSelect : public CT_LbsClientStep |
|
30 { |
|
31 public: |
|
32 ~CT_LbsClientStep_ModSelect(); |
|
33 |
|
34 static CT_LbsClientStep_ModSelect* New(CT_LbsClientServer& aParent); |
|
35 |
|
36 virtual TVerdict doTestStepL(); |
|
37 |
|
38 private: |
|
39 CT_LbsClientStep_ModSelect(CT_LbsClientServer& aParent); |
|
40 |
|
41 enum TModuleType |
|
42 { |
|
43 ERandomModule, |
|
44 EAGPSModule, |
|
45 ENetworkModule |
|
46 }; |
|
47 enum TOpenSesstionMethod |
|
48 { |
|
49 ENone, |
|
50 EWithCriteria, |
|
51 EWithModuleId |
|
52 }; |
|
53 |
|
54 void DoModuleSelectionL(TOpenSesstionMethod aMethod, TModuleType aModuleType); |
|
55 TInt SetupNetSimL(); |
|
56 |
|
57 TInt Blocking_NotifyUpdateL(); |
|
58 TInt Blocking_NofifyUpdateWithCriteriaL(TPositionCriteria aCriteria); |
|
59 TInt Blocking_NotifyUpdateWithModuleIdL(TPositionModuleId aModuleId); |
|
60 TInt Blocking_NotifyUpdateCommonL(); |
|
61 |
|
62 TBool VerifyLastModuleIdWasAGpsL(); |
|
63 TBool VerifyLastModuleIdWasNetworkL(); |
|
64 |
|
65 RLbsNetSimTest iNetSim; |
|
66 |
|
67 TPositionCriteria iCriteria; // default capability is ECapabilityHorizontal |
|
68 TPositionQuality iQuality; |
|
69 TPositionSelectionOrder iSelectOrder; |
|
70 TPositionModuleId iModuleId; |
|
71 }; |
|
72 |
|
73 #endif //__CT_LBS_CLIENT_STEP_MODSELECT_H__ |