|
1 /* |
|
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Definition file for Location Trail. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __LOCATIONTRAILDEFS_H__ |
|
20 #define __LOCATIONTRAILDEFS_H__ |
|
21 |
|
22 // Update interval |
|
23 const TInt KUpdateInterval = 10000000; // 10 seconds. |
|
24 // Update time out |
|
25 const TInt KUpdateTimeOut = 20000000; // 20 seconds. |
|
26 // Max age |
|
27 const TInt KMaxAge = 800000; // 0.8 second |
|
28 |
|
29 const TInt KMaxTrailLength = 480000000; // 8 min. |
|
30 |
|
31 const TInt KIntervalSeconds = KUpdateInterval / 1000000; // 10 seconds |
|
32 |
|
33 const TInt KCurrentLocTimeoutCount = 48; // 48 * 10 sec -> 8 min timeout. |
|
34 |
|
35 const TInt KTrackLogBufSize = 10; |
|
36 |
|
37 const TInt KLocationTrailShutdownDelay = 180; |
|
38 |
|
39 const TInt KLocationDelta = 30; |
|
40 |
|
41 const TInt KRemappingTime = 600; |
|
42 |
|
43 const TInt KFirstInterval = 1000000; // 1 second |
|
44 |
|
45 //The name of the requestor |
|
46 _LIT( KRequestor, "Location Trail" ); |
|
47 |
|
48 // GPS tag ids. |
|
49 const TInt KGPSVersion = 0x0000; |
|
50 const TInt KGPSLatitudeRef = 0x0001; |
|
51 const TInt KGPSLatitude = 0x0002; |
|
52 |
|
53 const TInt KGPSLongitudeRef = 0x0003; |
|
54 const TInt KGPSLongitude = 0x0004; |
|
55 |
|
56 const TInt KGPSAltitudeRef = 0x0005; |
|
57 const TInt KGPSAltitude = 0x0006; |
|
58 |
|
59 const TInt KGPSTimeStamp = 0x0007; |
|
60 const TInt KGPSDateStamp = 0x001d; |
|
61 |
|
62 |
|
63 const TInt KMaxTagSize = 25; |
|
64 const TInt KMinutes = 60; // Minutes. |
|
65 const TInt KSeconds = 6000; // Seconds * 100. |
|
66 const TReal KRounding = 0.5; |
|
67 |
|
68 _LIT8( KDateStampStr, "%04d:%02d:%02d" ); |
|
69 |
|
70 _LIT8( KLatitudeStr, "%04S%04S%04S%04S%04S%04S" ); |
|
71 |
|
72 _LIT8( KNorthStr, "N" ); // North |
|
73 _LIT8( KSouthStr, "S" ); // South |
|
74 _LIT8( KEastStr, "E" ); // East |
|
75 _LIT8( KWestStr, "W" ); // West |
|
76 |
|
77 /** |
|
78 * UID for using Central Repository |
|
79 * location managers related data. |
|
80 */ |
|
81 const TUid KRepositoryUid = { 0x200071BE }; |
|
82 |
|
83 /** |
|
84 * Key for reading interval value from |
|
85 * Central repository. |
|
86 */ |
|
87 const TUint32 KIntervalKey = 0x00000001; |
|
88 |
|
89 /** |
|
90 * Key for reading trail length value from |
|
91 * Central repository. |
|
92 */ |
|
93 const TUint32 KTrailLengthKey = 0x00000002; |
|
94 |
|
95 /** |
|
96 * Key for reading location trail timeout value from |
|
97 * Central repository. |
|
98 */ |
|
99 const TUint32 KLocationTrailShutdownTimer = 0x00000003; |
|
100 |
|
101 /** |
|
102 * Key for reading tracklog buffer size from |
|
103 * Central repository. |
|
104 */ |
|
105 const TUint32 KTrackLogSizeKey = 0x00000004; |
|
106 |
|
107 /** |
|
108 * Key for reading distance for using existing location object from |
|
109 * Central repository. |
|
110 */ |
|
111 const TUint32 KLocationDeltaKey = 0x00000005; |
|
112 |
|
113 /** |
|
114 * Key for reading distance for using existing location object from |
|
115 * Central repository. |
|
116 */ |
|
117 const TUint32 KRemappingTimeKey = 0x00000006; |
|
118 |
|
119 #endif // __LOCATIONTRAILDEFS_H__ |
|
120 |
|
121 // End of file. |