Location service: get the current position

If we have a fix that is fewer than 5 minutes old, take it, otherwise trigger
an update.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-01-01 17:21:30 -08:00
parent 66cd83a70f
commit 14a09689a4
2 changed files with 24 additions and 0 deletions

View file

@ -20,6 +20,7 @@ public:
int getGpsNum() const;
QString getUserid(QString user, QString passwd);
bool hasLocationsSource();
QString currentPosition();
private:
QGeoPositionInfo lastPos;