GPSPositionInterface class is an interface for GPS. More...
#include <gpspositioninterface.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 | |
| GPSPositionInterface (QObject *parent=0) | |
| Constructor. | |
| virtual | ~GPSPositionInterface () |
| Destructor. | |
| virtual bool | isRunning ()=0 |
| Checks if GPS is running. | |
| virtual void | lastPosition ()=0 |
| Informs gps to emit last known position. | |
| virtual void | setMode (Mode mode, const QString &filePath=0)=0 |
| Set GPS mode. | |
| virtual void | setUpdateInterval (int interval)=0 |
| Set GPS update interval. | |
| virtual void | start ()=0 |
| Start GPS. | |
| virtual void | stop ()=0 |
| Stop GPS. | |
Private Slots | |
| virtual void | update ()=0 |
| Slot for GPS update request. | |
GPSPositionInterface class is an interface for GPS.
| GPSPositionInterface::GPSPositionInterface | ( | QObject * | parent = 0 |
) |
Constructor.
| parent | QObject |
| void GPSPositionInterface::error | ( | const QString & | message | ) | [signal] |
Signal for error.
| message | error message |
| virtual bool GPSPositionInterface::isRunning | ( | ) | [pure virtual] |
Checks if GPS is running.
Implemented in GPSPosition, and GPSPositionMockup.
| void GPSPositionInterface::position | ( | QPointF | latLonCoordinate, | |
| qreal | accuracy | |||
| ) | [signal] |
Signal for position information.
| latLonCoordinate | latitude and longitude values | |
| accuracy | accuracy in metres |
| virtual void GPSPositionInterface::setMode | ( | Mode | mode, | |
| const QString & | filePath = 0 | |||
| ) | [pure virtual] |
Set GPS mode.
Modes: default and simulation.
| mode | GPS mode | |
| filePath | file path to NMEA file if simulation mode is used |
Implemented in GPSPosition, and GPSPositionMockup.
| virtual void GPSPositionInterface::setUpdateInterval | ( | int | interval | ) | [pure virtual] |
Set GPS update interval.
Implemented in GPSPosition, and GPSPositionMockup.
1.6.1