|
1 // Copyright (c) 2006-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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef LBSLOCSOURCEGPS_H |
|
22 #define LBSLOCSOURCEGPS_H |
|
23 |
|
24 //************************************************************************************************************ |
|
25 #include <lbs.h> |
|
26 #include <lbs/lbslocdatasourcegpsbase.h> |
|
27 |
|
28 //#include "LbsLasUpdateSource.h" |
|
29 |
|
30 class TLbsGpsOptions; |
|
31 class CLasUpdateSource; |
|
32 |
|
33 |
|
34 //************************************************************************************************************ |
|
35 // CLbsLocationSourceGps |
|
36 //************************************************************************************************************ |
|
37 class CLbsLocationSourceGps : public CLbsLocationSourceGpsBase //, public MLasUpdateSourceObserver |
|
38 { |
|
39 public: |
|
40 IMPORT_C static CLbsLocationSourceGpsBase* NewL(MLbsLocationSourceGpsObserver& aObserver); |
|
41 |
|
42 ~CLbsLocationSourceGps(); |
|
43 |
|
44 public: |
|
45 void SetGpsOptions(const TLbsGpsOptions& aGpsOptions); |
|
46 |
|
47 void RequestLocationUpdate(const TTime& aTargetTime, const TLbsLocRequestQuality& aQuality); |
|
48 |
|
49 void CancelLocationRequest(); |
|
50 |
|
51 void AdvisePowerMode(CLbsLocationSourceGpsBase::TPowerMode aMode); |
|
52 |
|
53 void AssistanceDataEvent(TInt aError, TLbsAsistanceDataGroup aDataMask); |
|
54 |
|
55 |
|
56 void HandleLocationUpdate(const TPositionInfoBase& aPosInfo); |
|
57 |
|
58 void HandleDeviceStatusUpdate(TPositionModuleStatus::TDeviceStatus aDeviceStatus); |
|
59 |
|
60 void HandleQualityStatusUpdate(TPositionModuleStatus::TDataQualityStatus aDataQuality); |
|
61 |
|
62 void Shutdown(); |
|
63 |
|
64 void NotifyServiceToClose(TRequestStatus* aStatus); |
|
65 |
|
66 protected: |
|
67 CLbsLocationSourceGps(MLbsLocationSourceGpsObserver& aObserver); |
|
68 void ConstructL(); |
|
69 |
|
70 protected: |
|
71 // CLasUpdateSource* iUpdateSource; |
|
72 }; |
|
73 |
|
74 |
|
75 #endif //LBSLOCSOURCEGPS_H |