#include <qgsgpsconnection.h>
Abstract base class for connection to a GPS device
Definition at line 239 of file qgsgpsconnection.h.
◆ Status
Enumerator |
---|
NotConnected | |
Connected | |
DataReceived | |
GPSDataReceived | |
Definition at line 261 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 71 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 119 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 284 of file qgsgpsconnection.h.
◆ mLastGPSInformation
Last state of the gps related variables (e.g. position, time, ...)
Definition at line 297 of file qgsgpsconnection.h.
◆ mSource
std::unique_ptr< QIODevice > QgsGpsConnection::mSource |
|
protected |
◆ mStatus
The documentation for this class was generated from the following files: