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 MTLR UE Assisted GPS ok |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __CT_LBS_HYBRID_UEASSISTED_MTLR_POS_STATUS_H__ |
|
19 #define __CT_LBS_HYBRID_UEASSISTED_MTLR_POS_STATUS_H__ |
|
20 |
|
21 // LBS includes. |
|
22 #include <lbs.h> |
|
23 #include <lbscommon.h> |
|
24 #include <lbs/lbsnetcommon.h> |
|
25 #include <lbs/lbsprivacycontroller.h> |
|
26 |
|
27 // LBS test includes. |
|
28 #include "ctlbshybridmtlrstep.h" |
|
29 #include <lbs/test/lbsnetprotocolproxy.h> |
|
30 #include "lbs/lbspositioningstatus.h" |
|
31 |
|
32 |
|
33 // Literals used |
|
34 _LIT(KLbsHybridUEAssistedMTLRPosStatus,"LbsHybridUEAssistedMTLRPosStatus"); |
|
35 |
|
36 class CT_LbsHybridUEAssistedMTLRPosStatus: public CT_LbsHybridMTLRStep, public MLbsPrivacyObserver, public MLbsPositioningStatusObserver |
|
37 { |
|
38 public: |
|
39 static CT_LbsHybridUEAssistedMTLRPosStatus* New(CT_LbsHybridMTLRServer& aParent); |
|
40 enum TVerdict doTestStepL(); |
|
41 ~CT_LbsHybridUEAssistedMTLRPosStatus(); |
|
42 |
|
43 protected: |
|
44 // from MLbsPrivacyObserver |
|
45 void ProcessNetworkLocationRequest(TUint aRequestId, const TLbsExternalRequestInfo& aRequestInfo, const TNotificationType& aNotificationType); |
|
46 void ProcessNetworkPositionUpdate(TUint aRequestId, const TPositionInfo& aPosInfo); |
|
47 void ProcessRequestComplete(TUint aRequestId, TInt aReason); |
|
48 |
|
49 //MLbsPositioningStatusObserver |
|
50 void OnPositioningStatusUpdate(const CLbsPositioningStatus::TLbsPositioningStatus& aPositioningStatus); |
|
51 |
|
52 protected: |
|
53 CT_LbsHybridUEAssistedMTLRPosStatus(CT_LbsHybridMTLRServer& aParent); |
|
54 void ConstructL(); |
|
55 |
|
56 private: |
|
57 enum TState |
|
58 { |
|
59 EInitializing, |
|
60 EPrivacyCheckOk, |
|
61 ERefLocReceived, |
|
62 EGpsLocReceived, |
|
63 ERequestComplete |
|
64 }; |
|
65 |
|
66 TState iState; |
|
67 TLbsNetSessionId iSessionId; |
|
68 CLbsPrivacyController* iController; |
|
69 CNetProtocolProxy* iProxy; |
|
70 |
|
71 CLbsPositioningStatus* iLbsPostioningStatus; |
|
72 TInt iPosStatusCount; |
|
73 CLbsPositioningStatus::TLbsPositioningStatus iPositioningStatus; |
|
74 }; |
|
75 |
|
76 #endif //__CT_LBS_HYBRID_UEASSISTED_MTLR_POS_STATUS_H__ |
|