equal
deleted
inserted
replaced
|
1 |
|
2 /* |
|
3 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Initial Contributors: |
|
11 * Nokia Corporation - initial contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: Implementation of the GPS Watcher |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef GPSTIMEUPDATER_H_ |
|
21 #define GPSTIMEUPDATER_H_ |
|
22 |
|
23 #include <lbs.h> |
|
24 #include <lbssatellite.h> |
|
25 |
|
26 class CDRMClock; |
|
27 |
|
28 class CGPSTimeUpdater : public CActive |
|
29 { |
|
30 public: |
|
31 ~CGPSTimeUpdater(); |
|
32 static CGPSTimeUpdater* New( RPositionServer &aPosServer, |
|
33 const TPositionModuleId& aModuleId, |
|
34 CDRMClock* aClock ); |
|
35 |
|
36 inline const TPositionModuleId& ModuleId() { return iModuleId; } |
|
37 |
|
38 inline const TBool TimeReceived() { return iTimeReceived; } |
|
39 |
|
40 private: |
|
41 CGPSTimeUpdater( RPositionServer &aPosServer, |
|
42 const TPositionModuleId& aModuleId, |
|
43 CDRMClock* aClock ); |
|
44 void ConstructL(); |
|
45 |
|
46 void RunL(); |
|
47 void DoCancel(); |
|
48 TInt RunError( TInt aError ); |
|
49 |
|
50 private: |
|
51 RPositionServer &iPosServer; |
|
52 RPositioner iPositioner; |
|
53 TPositionModuleId iModuleId; |
|
54 |
|
55 TPositionSatelliteInfo iSatelliteInfo; |
|
56 CDRMClock* iClock; |
|
57 TBool iTimeReceived; |
|
58 }; |
|
59 |
|
60 #endif |