summaryrefslogtreecommitdiffstats
path: root/core/gpslocation.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-17 22:47:53 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-17 22:59:12 -0700
commitc0b44e25b730ffb839b019fa9e84a75a1b14aa12 (patch)
treeb330da761c14ef26e033ab27409d6debea570814 /core/gpslocation.h
parentb00306f50e489be144c8acec6944c2d4ac0b861c (diff)
downloadsubsurface-c0b44e25b730ffb839b019fa9e84a75a1b14aa12.tar.gz
GPS provider: change haveGPS status if GPS source returns error
If the GPS source returns an error that could be an indication that the user hasn't given us permission to use it, so switch our status to NOGPS. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/gpslocation.h')
-rw-r--r--core/gpslocation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/gpslocation.h b/core/gpslocation.h
index c6e4a7912..0e333ed82 100644
--- a/core/gpslocation.h
+++ b/core/gpslocation.h
@@ -20,7 +20,7 @@ struct gpsTracker {
int idx;
};
-class GpsLocation : QObject {
+class GpsLocation : public QObject {
Q_OBJECT
public:
GpsLocation(void (*showMsgCB)(const char *msg), QObject *parent);
@@ -61,6 +61,7 @@ public slots:
void serviceEnable(bool toggle);
void newPosition(QGeoPositionInfo pos);
void updateTimeout();
+ void positionSourceError(QGeoPositionInfoSource::Error error);
void uploadToServer();
void downloadFromServer();
void postError(QNetworkReply::NetworkError error);