QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
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 return QCoreApplication::translate(
"QgsGpsInformation",
"Simulation mode" );
78 return QCoreApplication::translate(
"QgsGpsInformation",
"Manual input mode" );
81 return QCoreApplication::translate(
"QgsGpsInformation",
"Estimated" );
84 return QCoreApplication::translate(
"QgsGpsInformation",
"Float RTK" );
87 return QCoreApplication::translate(
"QgsGpsInformation",
"Fixed RTK" );
90 return QCoreApplication::translate(
"QgsGpsInformation",
"PPS" );
93 return QCoreApplication::translate(
"QgsGpsInformation",
"DGPS" );
96 return QCoreApplication::translate(
"QgsGpsInformation",
"Autonomous" );
99 return QCoreApplication::translate(
"QgsGpsInformation",
"Invalid" );
102 return QCoreApplication::translate(
"QgsGpsInformation",
"Unknown (%1)" ).arg( QString::number(
quality ) );
110 clearLastGPSInformation();
126 bool connected =
mSource->open( QIODevice::ReadWrite | QIODevice::Unbuffered );
145 void QgsGpsConnection::cleanupSource()
158 clearLastGPSInformation();
161 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.