This classcan be used to obtain GPS coordinates. More...
#include <Gps.h>
Public Slots | |
void | positionUpdated (const QGeoPositionInfo &info) |
Slot called when GPS returns a location. | |
void | timedOut () |
Slot called when GPS position requested timed out. | |
Signals | |
void | GpsLocationReady (double lat, double lng) |
void | noGPS (QString reason) |
void | status (QString msg) |
Public Member Functions | |
Gps (QObject *parent=0) | |
Construct a new GPS object to get the position. | |
virtual | ~Gps () |
Destruct GPS Object. | |
void | getPosition () |
Request position from GPS. |
This classcan be used to obtain GPS coordinates.
Gps::Gps | ( | QObject * | parent = 0 |
) |
Construct a new GPS object to get the position.
The initialization is done upon object construction thus there is no need to call initGPS().
void Gps::positionUpdated | ( | const QGeoPositionInfo & | info | ) | [slot] |
Slot called when GPS returns a location.
It forwards the location info with a signal and tells the GPS device to stop sending location updates.