|
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_EXTENDED_CANCEL_H__ |
|
19 #define __CT_LBS_EXTENDED_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 // jcm temp botch #include "lbsnetprotocolproxy.h" |
|
30 |
|
31 |
|
32 // Literals used |
|
33 _LIT(KLbsExtendedMtlrCancel,"KLbsExtendedMtlrCancel"); |
|
34 |
|
35 class CT_LbsExtendedMTLRCancel: public CT_LbsExtendedMTLRStep, public MLbsPrivacyObserver |
|
36 { |
|
37 public: |
|
38 static CT_LbsExtendedMTLRCancel* New(CT_LbsExtendedMTLRServer& aParent); |
|
39 enum TVerdict doTestStepL(); |
|
40 ~CT_LbsExtendedMTLRCancel(); |
|
41 |
|
42 protected: |
|
43 // from MLbsPrivacyObserver |
|
44 void ProcessNetworkLocationRequest(TUint aRequestId, const TLbsExternalRequestInfo& aRequestInfo, const TNotificationType& aNotificationType); |
|
45 void ProcessNetworkPositionUpdate(TUint aRequestId, const TPositionInfo& aPosInfo); |
|
46 void ProcessRequestComplete(TUint aRequestId, TInt aReason); |
|
47 |
|
48 protected: |
|
49 CT_LbsExtendedMTLRCancel(CT_LbsExtendedMTLRServer& aParent); |
|
50 void ConstructL(); |
|
51 private: |
|
52 void InitiateCancelMTLR(TUint aRequestId); |
|
53 private: |
|
54 enum TState |
|
55 { |
|
56 EInitializing, |
|
57 EPrivacyCheckOk, |
|
58 ERefLocReceived, |
|
59 EGpsLocReceived, |
|
60 ERequestComplete |
|
61 }; |
|
62 |
|
63 TState iState; |
|
64 TLbsNetSessionId iSessionId; |
|
65 CLbsPrivacyController* iController; |
|
66 CNetProtocolProxy* iProxy; |
|
67 }; |
|
68 |
|
69 #endif //__CT_LBS_EXTENDED_CANCEL_H__ |