|
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 MTLR Cancel |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __CT_LBS_EXT_PTB_CANCEL_H__ |
|
19 #define __CT_LBS_EXT_PTB_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(KLbsExtPtbMtlrCancel,"KLbsExtPtbMtlrCancel"); |
|
32 |
|
33 class CT_LbsExtPtbMTLRCancel: public CT_LbsExtendedMTLRStep, public MLbsPrivacyObserver |
|
34 { |
|
35 public: |
|
36 static CT_LbsExtPtbMTLRCancel* New(CT_LbsExtendedMTLRServer& aParent); |
|
37 enum TVerdict doTestStepL(); |
|
38 ~CT_LbsExtPtbMTLRCancel(); |
|
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 |
|
46 protected: |
|
47 CT_LbsExtPtbMTLRCancel(CT_LbsExtendedMTLRServer& aParent); |
|
48 void ConstructL(); |
|
49 private: |
|
50 void InitiateCancelMTLR(TUint aRequestId); |
|
51 private: |
|
52 enum TState |
|
53 { |
|
54 EInitializing, |
|
55 EPrivacyCheckOk, |
|
56 ERefLocReceived, |
|
57 EGpsLocReceived, |
|
58 ERequestComplete |
|
59 }; |
|
60 |
|
61 TState iState; |
|
62 TLbsNetSessionId iSessionId; |
|
63 CLbsPrivacyController* iController; |
|
64 CNetProtocolProxy* iProxy; |
|
65 }; |
|
66 |
|
67 #endif //__CT_LBS_EXT_PTB_CANCEL_H__ |