summaryrefslogtreecommitdiffstats
path: root/qt-mobile/gpslocation.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-13 09:17:13 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-13 09:17:13 -0800
commit6a70793ba843549bd8e1921a91a3af0e10702405 (patch)
tree68849dd992eb8415f8105a7d934797e5f2bcabe8 /qt-mobile/gpslocation.cpp
parent4b39971978b5c1fe2f50e83837eb5f8b2ce7ce47 (diff)
downloadsubsurface-6a70793ba843549bd8e1921a91a3af0e10702405.tar.gz
Location service: report number of recorded GPS fixes
This is mostly for debugging, to make sure that the recording of GPS fixes works as expected. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/gpslocation.cpp')
-rw-r--r--qt-mobile/gpslocation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-mobile/gpslocation.cpp b/qt-mobile/gpslocation.cpp
index 2459aeefd..35654b7ff 100644
--- a/qt-mobile/gpslocation.cpp
+++ b/qt-mobile/gpslocation.cpp
@@ -74,6 +74,11 @@ void GpsLocation::status(QString msg)
qmlUiShowMessage(qPrintable(msg));
}
+int GpsLocation::getGpsNum() const
+{
+ return geoSettings.value("count", 0).toInt();
+}
+
struct gpsTracker {
degrees_t latitude;
degrees_t longitude;