X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fgpsdata.h;h=f7b40e800bed42407d821d941381d5aba0d1cc04;hp=fd1d451c6c4ec27301bae1f99e37ba38ec69362d;hb=3234868e987a0a8bc3967631c2f16afc4419b8e3;hpb=a16a5f4ed3711ad28f85951c0d63e666b1f86c11 diff --git a/Client/gpsdata.h b/Client/gpsdata.h index fd1d451..f7b40e8 100644 --- a/Client/gpsdata.h +++ b/Client/gpsdata.h @@ -13,23 +13,24 @@ #include #include #include +#include +#include class GPSData : public QObject { Q_OBJECT public: - GPSData(Maemo5Location *maemo5location); + GPSData( Maemo5Location *maemo5location ); ~GPSData(); - void startRouteRecording(QString time); - void stopRouteRecording(QString time); + void startRouteRecording(); + void stopRouteRecording(); int roundCounter; //testing, move private!!! - double *getGpsDataArray(); - int getRoundCounter(); private: Maemo5Location *location; void resetAll(); - void saveRoute(); + QXmlStreamWriter xmlwriter; + void writeRouteXml(QIODevice *device, int round); int satellitesInUse; //Number of satellites in use. int satellitesInView;//Number of satellites in view. @@ -47,16 +48,17 @@ private: 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 latitudeNow; - QString longitudeNow; - QString latitudePrevious; - QString longitudePrevious; - + QString sLatitudeNow; + QString sLongitudeNow; + QString sLatitudePrevious; + QString sLongitudePrevious; + QDateTime *gpsDateTime; bool recordingStatus; //int roundCounter; - double gpsDataArray[100][4]; private slots: void agnss();