X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fgpsdata.h;h=0327c45bb1865fef1cf58e69d9f7e6d4707b6e90;hp=51ee130a1a5a897f2356751ec454cd68c37d58e5;hb=69cb07ccffb899f28e122e1fe2ea1a94dce4a07a;hpb=431e1a47738b2f723789de366eead08c4e2b5fd2 diff --git a/Client/gpsdata.h b/Client/gpsdata.h index 51ee130..0327c45 100644 --- a/Client/gpsdata.h +++ b/Client/gpsdata.h @@ -11,16 +11,57 @@ #include #include +#include +#include +#include +#include class GPSData : public QObject { Q_OBJECT public: - GPSData(Maemo5Location *maemo5location); + GPSData( Maemo5Location *maemo5location ); ~GPSData(); + void startRouteRecording(); + void stopRouteRecording(); + int roundCounter; //testing, move private!!! + + double getDistanceTraveled(); private: Maemo5Location *location; + void resetAll(); + QXmlStreamWriter xmlwriter; + void writeRouteXml(QIODevice *device, int round); + + int satellitesInUse; //Number of satellites in use. + int satellitesInView;//Number of satellites in view. + int signalStrength; //Average signal strength of satellites which are in use. + double latitude; //Latitude. + double longitude; //Longitude. + double time; //Timestamp of the update in seconds. + double ept; //Time accuracy in seconds. + double eph; //Horizontal position accuracy in cm. + double altitude; //Fix altitude in meters. + double epv; //Altitude accuracy in meters. + double track; //Direction of motion in degrees(0-359). + double epd; //Track accuracy in degrees. + double speed; //Current speed in km/h. + double eps; //Speed accuracy in km/h. + double climb; //Current rate of climb in m/s. + double epc; //Climb accuracy in m/s. + double latitudePrevious; + double longitudePrevious; + double distance; + QString routeStartTime; + QString routeStopTime; + QString sLatitudeNow; + QString sLongitudeNow; + QString sLatitudePrevious; + QString sLongitudePrevious; + QDateTime *gpsDateTime; + bool recordingStatus; + //int roundCounter; private slots: void agnss(); @@ -28,9 +69,10 @@ private slots: void locationUpdated(); void gpsConnected(); void gpsDisconnected(); - void gps_error(int error); - void gpsd_running(); - void gpsd_stopped(); + void gpsError(); + void gpsdRunning(); + void gpsdStopped(); + }; #endif // GPSDATA_H