diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-13 09:17:13 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-13 09:17:13 -0800 |
commit | 6a70793ba843549bd8e1921a91a3af0e10702405 (patch) | |
tree | 68849dd992eb8415f8105a7d934797e5f2bcabe8 /qt-mobile/gpslocation.cpp | |
parent | 4b39971978b5c1fe2f50e83837eb5f8b2ce7ce47 (diff) | |
download | subsurface-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.cpp | 5 |
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; |