|
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 MOLR UE Assisted GPS ok |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef CTLBSPTAMOLRPARTIALEARLYCOMPLETE_H |
|
19 #define CTLBSPTAMOLRPARTIALEARLYCOMPLETE_H |
|
20 |
|
21 // LBS test includes. |
|
22 #include "ctlbshybridmolrstep.h" |
|
23 #include <lbs/test/posserverwatch.h> |
|
24 |
|
25 // Literals used |
|
26 _LIT(KLbsPTAMOLRPartialEarlyComplete,"LbsPTAMOLRPartialEarlyComplete"); |
|
27 |
|
28 class CT_LbsPTAMOLRPartialEarlyComplete: public CT_LbsHybridMOLRStep, public MPosServerObserver |
|
29 { |
|
30 public: |
|
31 static CT_LbsPTAMOLRPartialEarlyComplete* New(CT_LbsHybridMOLRServer& aParent); |
|
32 enum TVerdict doTestStepL(); |
|
33 ~CT_LbsPTAMOLRPartialEarlyComplete(); |
|
34 |
|
35 protected: |
|
36 |
|
37 // MPosServerObserver |
|
38 void OnGetLastKnownPosition(TInt32 aErr, const TPositionInfoBase& aPosInfo); |
|
39 void OnNotifyPositionUpdate(TInt32 aErr, const TPositionInfoBase& aPosInfo); |
|
40 |
|
41 |
|
42 protected: |
|
43 CT_LbsPTAMOLRPartialEarlyComplete(CT_LbsHybridMOLRServer& aParent); |
|
44 void ConstructL(); |
|
45 |
|
46 private: |
|
47 enum TState |
|
48 { |
|
49 EInitializing, |
|
50 EGpsPartialInitReceived, |
|
51 EGpsPartialEarlyReceived |
|
52 }; |
|
53 |
|
54 TState iState; |
|
55 TLbsNetSessionId iSessionId; |
|
56 }; |
|
57 |
|
58 #endif // CTLBSPTAMOLRPARTIALEARLYCOMPLETE_H |