20 #define __CT_LBS_CLIENT_STEP_LAST_KNOWN_POS_H__ |
20 #define __CT_LBS_CLIENT_STEP_LAST_KNOWN_POS_H__ |
21 |
21 |
22 #include "ctlbsclientstep.h" |
22 #include "ctlbsclientstep.h" |
23 #include "ctlbsclientserver.h" |
23 #include "ctlbsclientserver.h" |
24 |
24 |
|
25 #include "ctlbsclientnotifyposupdao.h" |
|
26 #include "ctlbsclientlastknownpospnslistener.h" |
|
27 |
25 // Literals used |
28 // Literals used |
26 _LIT(KLbsClientStep_LastKnownPos, "LbsClientStep_LastKnownPos"); |
29 _LIT(KLbsClientStep_LastKnownPos, "LbsClientStep_LastKnownPos"); |
27 |
30 |
28 class CT_LbsClientStep_LastKnownPos : public CT_LbsClientStep |
31 class CT_LbsClientStep_LastKnownPos : public CT_LbsClientStep, public MT_LastKnownPosPnsObserver, public MT_NotifyPosUpdateObserver |
29 { |
32 { |
30 public: |
33 public: |
31 ~CT_LbsClientStep_LastKnownPos(); |
34 ~CT_LbsClientStep_LastKnownPos(); |
32 |
35 |
33 static CT_LbsClientStep_LastKnownPos* New(CT_LbsClientServer& aParent); |
36 static CT_LbsClientStep_LastKnownPos* New(CT_LbsClientServer& aParent); |
34 virtual TVerdict doTestStepL(); |
37 virtual TVerdict doTestStepL(); |
35 void SwitchOnselfLocateAPIL(); |
38 void SwitchOnselfLocateAPIL(); |
|
39 |
|
40 void NotifyPositionUpdateCallback(TRequestStatus& aStatus); |
|
41 void NotifyLastKnownPosPnsUpdate(TPositionInfo& aPositionInfo, TRequestStatus& aStatus); |
36 |
42 |
37 private: |
43 private: |
38 void ConstructL(); |
44 void ConstructL(); |
39 |
45 |
40 CT_LbsClientStep_LastKnownPos(CT_LbsClientServer& aParent); |
46 CT_LbsClientStep_LastKnownPos(CT_LbsClientServer& aParent); |
|
47 |
|
48 private: |
|
49 TBool iLastKnownPostionReceived; |
|
50 TBool iNpudReceived; |
|
51 TPositionInfo iLastKnownPosInfo; |
|
52 TInt iError; |
41 }; |
53 }; |
42 |
54 |
43 #endif //__CT_LBS_CLIENT_STEP_LAST_KNOWN_POS_H__ |
55 #endif //__CT_LBS_CLIENT_STEP_LAST_KNOWN_POS_H__ |