summaryrefslogtreecommitdiffstats
path: root/qt-mobile/gpslocation.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-13 17:21:43 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-13 17:21:43 -0800
commit7afed04520900906107774bb0d06f68dd142602e (patch)
tree3ab622544f5f7b9c7694c9f123f9d5ab6ccb8967 /qt-mobile/gpslocation.h
parent577da54454e83e448b3a9ba912b4ba58fa64d3ab (diff)
downloadsubsurface-7afed04520900906107774bb0d06f68dd142602e.tar.gz
Location service: upload GPS fixes to webservice
With this Subsurface-mobile should be able to mostly replace the companion app. This needs some more testing and fine tuning (for example the minimum time / distance should be configurable, there should be a location name), but I think the hard part is done now. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/gpslocation.h')
-rw-r--r--qt-mobile/gpslocation.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-mobile/gpslocation.h b/qt-mobile/gpslocation.h
index a8437cca2..ff7aa1ea4 100644
--- a/qt-mobile/gpslocation.h
+++ b/qt-mobile/gpslocation.h
@@ -7,6 +7,7 @@
#include <QGeoPositionInfoSource>
#include <QGeoPositionInfo>
#include <QSettings>
+#include <QNetworkReply>
class GpsLocation : QObject
{
@@ -21,6 +22,7 @@ private:
QGeoPositionInfoSource *gpsSource;
void status(QString msg);
QSettings *geoSettings;
+ QNetworkReply *reply;
signals:
@@ -28,7 +30,10 @@ public slots:
void serviceEnable(bool toggle);
void newPosition(QGeoPositionInfo pos);
void updateTimeout();
+ void uploadToServer();
+ void postError(QNetworkReply::NetworkError error);
void clearGpsData();
+
};
#endif // GPSLOCATION_H