X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fgpsdata.h;h=f7b40e800bed42407d821d941381d5aba0d1cc04;hp=b51a929d7f6b314364be720b19ed0799b00e7920;hb=e59c84a91124661c2801892a42846e753538f680;hpb=6c084ac4841e5db94a71710a02db344f36eaa8fc diff --git a/Client/gpsdata.h b/Client/gpsdata.h index b51a929..f7b40e8 100644 --- a/Client/gpsdata.h +++ b/Client/gpsdata.h @@ -11,15 +11,54 @@ #include #include +#include +#include +#include +#include class GPSData : public QObject { + Q_OBJECT public: - GPSData(); + GPSData( Maemo5Location *maemo5location ); ~GPSData(); + void startRouteRecording(); + void stopRouteRecording(); + int roundCounter; //testing, move private!!! 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; + QString routeStartTime; + QString routeStopTime; + QString sLatitudeNow; + QString sLongitudeNow; + QString sLatitudePrevious; + QString sLongitudePrevious; + QDateTime *gpsDateTime; + bool recordingStatus; + //int roundCounter; private slots: void agnss(); @@ -27,9 +66,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