|
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 Extended protocol module Hybrid MTLR Cancel during emergency |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __CT_LBS_HYBRID_EMERGENCY_CANCEL_H__ |
|
19 #define __CT_LBS_HYBRID_EMERGENCY_CANCEL_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 "ctlbsextendedmtlrstep.h" |
|
29 |
|
30 // Literals used |
|
31 _LIT(KLbsHybridEmergencyCancel,"LbsHybridEmergencyCancel"); |
|
32 |
|
33 class CT_LbsHybridEmergencyCancel: public CT_LbsExtendedMTLRStep, public MLbsPrivacyObserver |
|
34 { |
|
35 public: |
|
36 static CT_LbsHybridEmergencyCancel* New(CT_LbsExtendedMTLRServer& aParent); |
|
37 enum TVerdict doTestStepL(); |
|
38 ~CT_LbsHybridEmergencyCancel(); |
|
39 |
|
40 protected: |
|
41 // from MLbsPrivacyObserver |
|
42 void ProcessNetworkLocationRequest(TUint aRequestId, const TLbsExternalRequestInfo& aRequestInfo, const TNotificationType& aNotificationType); |
|
43 void ProcessNetworkPositionUpdate(TUint aRequestId, const TPositionInfo& aPosInfo); |
|
44 void ProcessRequestComplete(TUint aRequestId, TInt aReason); |
|
45 protected: |
|
46 CT_LbsHybridEmergencyCancel(CT_LbsExtendedMTLRServer& aParent); |
|
47 void ConstructL(); |
|
48 private: |
|
49 void InitiateCancelMTLR(TUint aRequestId); |
|
50 private: |
|
51 enum TState |
|
52 { |
|
53 EInitializing, |
|
54 EPrivacyCheckOk, |
|
55 ERefLocReceived, |
|
56 EGpsLocReceived, |
|
57 ERequestComplete |
|
58 }; |
|
59 |
|
60 TState iState; |
|
61 TLbsNetSessionId iSessionId; |
|
62 CLbsPrivacyController* iController; |
|
63 CNetProtocolProxy* iProxy; |
|
64 }; |
|
65 |
|
66 #endif #ifndef __CT_LBS_HYBRID_EMERGENCY_CANCEL_H__ |