Abstract base class for connection to a GPS device.
More...
#include <qgsgpsconnection.h>
Protected Slots |
| virtual void | parseData ()=0 |
| | Parse available data source content.
|
Detailed Description
Abstract base class for connection to a GPS device.
Member Enumeration Documentation
- Enumerator:
| NotConnected |
|
| Connected |
|
| DataReceived |
|
| GPSDataReceived |
|
Constructor & Destructor Documentation
| QgsGPSConnection::QgsGPSConnection |
( |
QIODevice * |
dev | ) |
|
Constructor.
- Parameters
-
| dev | input device for the connection (e.g. serial device). The class takes ownership of the object |
| QgsGPSConnection::~QgsGPSConnection |
( |
| ) |
|
|
virtual |
Member Function Documentation
| bool QgsGPSConnection::close |
( |
| ) |
|
Closes connection to device.
| bool QgsGPSConnection::connect |
( |
| ) |
|
Opens connection to device.
Returns the current gps information (lat, lon, etc.)
| void QgsGPSConnection::nmeaSentenceReceived |
( |
const QString & |
substring | ) |
|
|
signal |
| virtual void QgsGPSConnection::parseData |
( |
| ) |
|
|
protectedpure virtualslot |
Parse available data source content.
| void QgsGPSConnection::setSource |
( |
QIODevice * |
source | ) |
|
Sets the GPS source.
The class takes ownership of the device class
| Status QgsGPSConnection::status |
( |
| ) |
const |
|
inline |
Returns the status.
Possible state are not connected, connected, data received
Member Data Documentation
Last state of the gps related variables (e.g.
position, time, ...)
| QIODevice* QgsGPSConnection::mSource |
|
protected |
Data source (e.g.
serial device, socket, file,...)
| Status QgsGPSConnection::mStatus |
|
protected |
The documentation for this class was generated from the following files: