1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
73 |
73 |
74 private: |
74 private: |
75 void NormalizeCoordinate(); |
75 void NormalizeCoordinate(); |
76 |
76 |
77 protected: |
77 protected: |
78 /** Latitude, defaults to WGS-84 format. */ |
78 /** Latitude, defaults to WGS-84 format. Represented in degree. */ |
79 TReal64 iLatitude; |
79 TReal64 iLatitude; |
80 /** Longitude, defaults to WGS-84 format. */ |
80 /** Longitude, defaults to WGS-84 format. Represented in degree. */ |
81 TReal64 iLongitude; |
81 TReal64 iLongitude; |
82 /** Altitude, defaults to WGS-84 format. */ |
82 /** Altitude, defaults to WGS-84 format. Represented in meters. */ |
83 TReal32 iAltitude; |
83 TReal32 iAltitude; |
84 /** The ID of the datum the coordinate is in, defaults to WGS-84 format. */ |
84 /** The ID of the datum the coordinate is in, defaults to WGS-84 format. */ |
85 TPositionDatumId iDatum; |
85 TPositionDatumId iDatum; |
86 /** Unused variable for future expansion. */ |
86 /** Unused variable for future expansion. */ |
87 TUint8 iReserved[4]; |
87 TUint8 iReserved[4]; |
198 { |
198 { |
199 public: |
199 public: |
200 IMPORT_C TCourse(); |
200 IMPORT_C TCourse(); |
201 |
201 |
202 IMPORT_C TReal32 Speed() const; |
202 IMPORT_C TReal32 Speed() const; |
|
203 IMPORT_C TReal32 VerticalSpeed() const; |
203 IMPORT_C TReal32 Heading() const; |
204 IMPORT_C TReal32 Heading() const; |
204 IMPORT_C TReal32 Course() const; |
205 IMPORT_C TReal32 Course() const; |
205 IMPORT_C TReal32 SpeedAccuracy() const; |
206 |
206 IMPORT_C TReal32 HeadingAccuracy() const; |
207 IMPORT_C TReal32 SpeedAccuracy() const; |
|
208 IMPORT_C TReal32 VerticalSpeedAccuracy() const; |
|
209 IMPORT_C TReal32 HeadingAccuracy() const; |
207 IMPORT_C TReal32 CourseAccuracy() const; |
210 IMPORT_C TReal32 CourseAccuracy() const; |
208 |
211 |
209 IMPORT_C void SetSpeed(TReal32 aSpeed); |
212 |
210 IMPORT_C void SetHeading(TReal32 aHeading); |
213 IMPORT_C void SetSpeed(TReal32 aSpeed); |
|
214 IMPORT_C void SetVerticalSpeed(TReal32 aVerticalSpeed); |
|
215 IMPORT_C void SetHeading(TReal32 aHeading); |
211 IMPORT_C void SetSpeedAccuracy(TReal32 aSpeedAccuracy); |
216 IMPORT_C void SetSpeedAccuracy(TReal32 aSpeedAccuracy); |
|
217 IMPORT_C void SetVerticalSpeedAccuracy(TReal32 aVerticalSpeedAccuracy); |
212 IMPORT_C void SetHeadingAccuracy(TReal32 aHeadingAccuracy); |
218 IMPORT_C void SetHeadingAccuracy(TReal32 aHeadingAccuracy); |
213 IMPORT_C void SetCourse(TReal32 aCourse); |
219 IMPORT_C void SetCourse(TReal32 aCourse); |
214 IMPORT_C void SetCourseAccuracy(TReal32 aCourseAccuracy); |
220 IMPORT_C void SetCourseAccuracy(TReal32 aCourseAccuracy); |
|
221 |
|
222 |
|
223 |
215 |
224 |
216 protected: |
225 protected: |
217 /** Speed, in metres per second. */ |
226 /** Speed, in metres per second. */ |
218 TReal32 iSpeed; |
227 TReal32 iSpeed; |
219 /** Heading, in degrees. */ |
228 /** True Heading, in degrees. */ |
220 TReal32 iHeading; |
229 TReal32 iHeading; |
221 /** Speed accuracy, in metres per second. */ |
230 /** Speed accuracy, in metres per second. */ |
222 TReal32 iSpeedAccuracy; |
231 TReal32 iSpeedAccuracy; |
223 /** Heading accuracy, in degrees. */ |
232 /** Heading accuracy, in degrees. */ |
224 TReal32 iHeadingAccuracy; |
233 TReal32 iHeadingAccuracy; |
225 /** Course, in degrees. */ |
234 /** True Course, in degrees. */ |
226 TReal32 iCourse; |
235 TReal32 iCourse; |
227 /** Course accuracy, in degrees. */ |
236 /** Course accuracy, in degrees. */ |
228 TReal32 iCourseAccuracy; |
237 TReal32 iCourseAccuracy; |
229 |
238 /** Vertical Speed, in metres per second. */ |
230 private: |
239 TReal32 iVerticalSpeed; |
231 /** Unused variable for future expansion. */ |
240 /** Vertical Speed accuracy, in metres per second. */ |
232 TUint8 iReserved[__LBS_TCOURSE_RESERVED_SIZE]; |
241 TReal32 iVerticalSpeedAccuracy; |
|
242 |
|
243 private: |
|
244 /** Unused variable for future expansion. */ |
|
245 TUint8 iReserved[8]; |
233 }; |
246 }; |
234 |
247 |
235 #endif //__LBSPOSITION_H__ |
248 #endif //__LBSPOSITION_H__ |