mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
5e42909964
commit
b00306f50e
2 changed files with 20 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue