Calibrate dialog addition.
[speedfreak] / Client / gpsdata.h
index 2c6f4b6..40e49fd 100644 (file)
@@ -13,6 +13,7 @@
 #include <maemo5location.h>
 #include <QFile>
 #include <QTextStream>
+#include <QTimer>
 
 class GPSData : public QObject
 {
@@ -23,6 +24,7 @@ public:
     void startRouteRecording(QString time);
     void stopRouteRecording(QString time);
     int roundCounter; //testing, move private!!!
+    int getRoundCounter();
 
 private:
     Maemo5Location *location;
@@ -54,7 +56,9 @@ private:
 
     bool recordingStatus;
     //int roundCounter;
-    double gpsDataArray[100][4];
+    double gpsDataArray[4];
+    QTimer *gpsTimer;
+    int gpsTimeMS;
 
 private slots:
     void agnss();
@@ -65,6 +69,7 @@ private slots:
     void gpsError();
     void gpsdRunning();
     void gpsdStopped();
+    void gpsTimerTimeout();
 
 };