4 * @author Toni Jussila <toni.jussila@fudeco.com>
5 * @copyright (c) 2010 Speed Freak team
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 #include <maemo5location.h>
15 #include <QTextStream>
16 #include <QXmlStreamWriter>
17 #include <qdatetime.h>
19 class GPSData : public QObject
23 GPSData( Maemo5Location *maemo5location );
25 void startRouteRecording();
26 void stopRouteRecording();
27 int roundCounter; //testing, move private!!!
29 double getDistanceTraveled();
30 double getDirection();
33 Maemo5Location *location;
35 QXmlStreamWriter xmlwriter;
36 void writeRouteXml(QIODevice *device, int round);
38 int satellitesInUse; //Number of satellites in use.
39 int satellitesInView;//Number of satellites in view.
40 int signalStrength; //Average signal strength of satellites which are in use.
41 double latitude; //Latitude.
42 double longitude; //Longitude.
43 double time; //Timestamp of the update in seconds.
44 double ept; //Time accuracy in seconds.
45 double eph; //Horizontal position accuracy in cm.
46 double altitude; //Fix altitude in meters.
47 double epv; //Altitude accuracy in meters.
48 double track; //Direction of motion in degrees(0-359).
49 double epd; //Track accuracy in degrees.
50 double speed; //Current speed in km/h.
51 double eps; //Speed accuracy in km/h.
52 double climb; //Current rate of climb in m/s.
53 double epc; //Climb accuracy in m/s.
54 double latitudePrevious;
55 double longitudePrevious;
57 QString routeStartTime;
58 QString routeStopTime;
60 QString sLongitudeNow;
61 QString sLatitudePrevious;
62 QString sLongitudePrevious;
63 QDateTime *gpsDateTime;
70 void locationUpdated();
72 void gpsDisconnected();