QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
20 #include <QCoreApplication>
23 #include <QStringList>
38 else if (
fixType == NMEA_FIX_2D )
59 else if (
fixType == NMEA_FIX_2D )
75 clearLastGPSInformation();
91 bool connected =
mSource->open( QIODevice::ReadWrite | QIODevice::Unbuffered );
110 void QgsGpsConnection::cleanupSource()
123 clearLastGPSInformation();
126 void QgsGpsConnection::clearLastGPSInformation()
QgsGpsConnection(QIODevice *dev)
Constructor.
Status mStatus
Connection status.
bool close()
Closes connection to device.
std::unique_ptr< QIODevice > mSource
Data source (e.g. serial device, socket, file,...)
void setSource(QIODevice *source)
Sets the GPS source. The class takes ownership of the device class.
~QgsGpsConnection() override
QgsGpsInformation mLastGPSInformation
Last state of the gps related variables (e.g. position, time, ...)
virtual void parseData()=0
Parse available data source content.
bool connect()
Opens connection to device.