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 273 of file qgsgpsconnection.h.
◆ Status
Enumerator |
---|
NotConnected | |
Connected | |
DataReceived | |
GPSDataReceived | |
Definition at line 295 of file qgsgpsconnection.h.
◆ QgsGpsConnection()
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 107 of file qgsgpsconnection.cpp.
◆ ~QgsGpsConnection()
QgsGpsConnection::~QgsGpsConnection |
( |
| ) |
|
|
override |
◆ close()
bool QgsGpsConnection::close |
( |
| ) |
|
◆ connect()
bool QgsGpsConnection::connect |
( |
| ) |
|
◆ currentGPSInformation()
◆ nmeaSentenceReceived
void QgsGpsConnection::nmeaSentenceReceived |
( |
const QString & |
substring | ) |
|
|
signal |
◆ parseData
virtual void QgsGpsConnection::parseData |
( |
| ) |
|
|
protectedpure virtualslot |
Parse available data source content.
◆ setSource()
void QgsGpsConnection::setSource |
( |
QIODevice * |
source | ) |
|
Sets the GPS source. The class takes ownership of the device class.
Definition at line 155 of file qgsgpsconnection.cpp.
◆ stateChanged
◆ status()
Status QgsGpsConnection::status |
( |
| ) |
const |
|
inline |
Returns the status. Possible state are not connected, connected, data received.
Definition at line 318 of file qgsgpsconnection.h.
◆ mLastGPSInformation
Last state of the gps related variables (e.g. position, time, ...)
Definition at line 331 of file qgsgpsconnection.h.
◆ mSource
std::unique_ptr< QIODevice > QgsGpsConnection::mSource |
|
protected |
◆ mStatus
The documentation for this class was generated from the following files: