|
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_HYBRID_UE_ASSISTED_MTLR_N0_GPS_H__ |
|
19 #define __CT_LBS_HYBRID_UE_ASSISTED_MTLR_N0_GPS_H__ |
|
20 |
|
21 // LBS includes. |
|
22 #include <lbs.h> |
|
23 #include <lbscommon.h> |
|
24 #include <lbs/lbsnetcommon.h> |
|
25 #include <lbs/lbsprivacycontroller.h> |
|
26 #include <lbs/lbsnetprotocolbase.h> |
|
27 |
|
28 // LBS test includes. |
|
29 #include "ctlbshybridmtlrstep.h" |
|
30 #include <lbs/test/lbsnetprotocolproxy.h> |
|
31 |
|
32 /* |
|
33 The ini file for NW or GPS ok should differ - We should probably hav a key word in the ini file to say |
|
34 that the GPS has found the result and it sends a cancel request to the network. |
|
35 */ |
|
36 |
|
37 // Literals used |
|
38 _LIT(KLbsHybridUEAssitedMTLRNoGPS, "LbsHybridUEAssistedMTLRNoGPS"); |
|
39 |
|
40 class CT_LbsHybridUEAssistedMTLRNoGPS : public CT_LbsHybridMTLRStep, public MLbsPrivacyObserver |
|
41 { |
|
42 public: |
|
43 ~CT_LbsHybridUEAssistedMTLRNoGPS(); |
|
44 |
|
45 static CT_LbsHybridUEAssistedMTLRNoGPS* New(CT_LbsHybridMTLRServer& aParent); |
|
46 virtual TVerdict doTestStepL(); |
|
47 |
|
48 // From MLbsPrivacyObserver |
|
49 void ProcessNetworkLocationRequest(TUint aRequestId, const TLbsExternalRequestInfo& aRequestInfo, const TNotificationType& aNotificationType); |
|
50 void ProcessNetworkPositionUpdate(TUint aRequestId, const TPositionInfo& aPosInfo); |
|
51 void ProcessRequestComplete(TUint aRequestId, TInt aReason); |
|
52 |
|
53 protected: |
|
54 CT_LbsHybridUEAssistedMTLRNoGPS(CT_LbsHybridMTLRServer& aParent); |
|
55 void ConstructL(); |
|
56 |
|
57 private: |
|
58 enum TState |
|
59 { |
|
60 EInitializing, |
|
61 EPrivacyCheckOk, |
|
62 ERefLocReceived, |
|
63 ERequestComplete |
|
64 }; |
|
65 |
|
66 TState iState; |
|
67 TLbsNetSessionId iSessionId; |
|
68 CLbsPrivacyController* iController; |
|
69 CNetProtocolProxy* iProxy; |
|
70 }; |
|
71 |
|
72 #endif //__CT_LBS_HYBRID_UE_ASSISTED_MTLR_N0_GPS_H__ |
|
73 |