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:
Dirk Hohndel 2016-04-17 22:41:30 -07:00
parent 5e42909964
commit b00306f50e
2 changed files with 20 additions and 10 deletions

View file

@ -52,6 +52,10 @@ private:
void replaceFixToStorage(gpsTracker &gt);
void deleteFixFromStorage(gpsTracker &gt);
void deleteFixesFromServer();
enum { UNKNOWN, NOGPS, HAVEGPS } haveSource;
signals:
void haveSourceChanged();
public slots:
void serviceEnable(bool toggle);