GPSPosition class is an interface for GPS. More...
#include <gpsposition.h>

Public Types | |
| enum | Mode { Default, Simulation } |
GPS position mode. | |
Signals | |
| void | error (const QString &message) |
| Signal for error. | |
| void | position (QPointF latLonCoordinate, qreal accuracy) |
| Signal for position information. | |
| void | timeout () |
| Signal for timeout. | |
Public Member Functions | |
| GPSPosition (QObject *parent=0) | |
| Constructor. | |
| bool | isRunning () |
| Checks if GPS is running. | |
| QPointF | lastPosition () |
| Return last known position. | |
| void | requestLastPosition () |
| Informs gps to emit last known position. | |
| void | setMode (Mode mode, const QString &filePath=0) |
| Set GPS mode. | |
| void | setUpdateInterval (int interval) |
| Set GPS update interval. | |
| void | start () |
| Start GPS. | |
| void | stop () |
| Stop GPS. | |
Private Attributes | |
| GPSPositionPrivate * | m_gpsPositionPrivate |
| GPSPositionPrivate object. | |
Friends | |
| class | GPSPositionPrivate |
| Friend class for GPSPosition. | |
GPSPosition class is an interface for GPS.
| GPSPosition::GPSPosition | ( | QObject * | parent = 0 |
) |
Constructor.
| parent | QObject |
| void GPSPosition::error | ( | const QString & | message | ) | [signal] |
Signal for error.
| message | error message |
| bool GPSPosition::isRunning | ( | ) |
Checks if GPS is running.
| void GPSPosition::position | ( | QPointF | latLonCoordinate, | |
| qreal | accuracy | |||
| ) | [signal] |
Signal for position information.
| latLonCoordinate | latitude and longitude values | |
| accuracy | accuracy in metres |
| void GPSPosition::setMode | ( | Mode | mode, | |
| const QString & | filePath = 0 | |||
| ) |
Set GPS mode.
Modes: default and simulation.
| mode | GPS mode | |
| filePath | file path to NMEA file if simulation mode is used |
| void GPSPosition::setUpdateInterval | ( | int | interval | ) |
Set GPS update interval.
1.6.1