diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-17 22:41:30 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-17 22:59:02 -0700 |
commit | b00306f50e489be144c8acec6944c2d4ac0b861c (patch) | |
tree | 567549f876e79a6178692b06e106fce2928c6cf9 /core/gpslocation.h | |
parent | 5e4290996415d5ac927ac108aefad286248ca21d (diff) | |
download | subsurface-b00306f50e489be144c8acec6944c2d4ac0b861c.tar.gz |
GPS provider: track tristate information for GPS source
Initially we don't know if we have a source. After that we may think
that we have one, or not have one (but that can actually change while
the program is running if the user, for example, turns the source off
or switches to airplane mode).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/gpslocation.h')
-rw-r--r-- | core/gpslocation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/gpslocation.h b/core/gpslocation.h index e1b485832..c6e4a7912 100644 --- a/core/gpslocation.h +++ b/core/gpslocation.h @@ -52,6 +52,10 @@ private: void replaceFixToStorage(gpsTracker >); void deleteFixFromStorage(gpsTracker >); void deleteFixesFromServer(); + enum { UNKNOWN, NOGPS, HAVEGPS } haveSource; + +signals: + void haveSourceChanged(); public slots: void serviceEnable(bool toggle); |