Abstract base class for connection to a GPS device.
More...
#include <qgsgpsconnection.h>
Abstract base class for connection to a GPS device.
Definition at line 65 of file qgsgpsconnection.h.
Enumerator |
---|
NotConnected |
|
Connected |
|
DataReceived |
|
GPSDataReceived |
|
Definition at line 87 of file qgsgpsconnection.h.
QgsGpsConnection::QgsGpsConnection |
( |
QIODevice * |
dev | ) |
|
Constructor.
- Parameters
-
dev | input device for the connection (e.g. serial device). The class takes ownership of the object |
Definition at line 31 of file qgsgpsconnection.cpp.
QgsGpsConnection::~QgsGpsConnection |
( |
| ) |
|
|
override |
bool QgsGpsConnection::close |
( |
| ) |
|
bool QgsGpsConnection::connect |
( |
| ) |
|
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.
Definition at line 78 of file qgsgpsconnection.cpp.
Status QgsGpsConnection::status |
( |
| ) |
const |
|
inline |
Returns the status. Possible state are not connected, connected, data received.
Definition at line 110 of file qgsgpsconnection.h.
Last state of the gps related variables (e.g. position, time, ...)
Definition at line 123 of file qgsgpsconnection.h.
QIODevice* QgsGpsConnection::mSource = nullptr |
|
protected |
Status QgsGpsConnection::mStatus |
|
protected |
The documentation for this class was generated from the following files: