18 #ifndef QGSGPSCONNECTION_H
19 #define QGSGPSCONNECTION_H
26 #include "qgis_core.h"
64 double elevation = std::numeric_limits< double >::quiet_NaN();
78 double azimuth = std::numeric_limits< double >::quiet_NaN();
124 double longitude = 0;
129 double elevation = 0;
137 double elevation_diff = 0;
149 double direction = std::numeric_limits< double >::quiet_NaN();
180 double hacc = std::numeric_limits< double >::quiet_NaN();
182 double vacc = std::numeric_limits< double >::quiet_NaN();
188 double hvacc = std::numeric_limits< double >::quiet_NaN();
225 int satellitesUsed = 0;
240 bool satInfoComplete =
false;
246 bool isValid()
const;
259 QString qualityDescription()
const;
276 if ( sipCpp->inherits(
"QgsGpsdConnection" ) )
277 sipType = sipType_QgsGpsdConnection;
278 else if ( sipCpp->inherits(
"QgsNmeaConnection" ) )
279 sipType = sipType_QgsNmeaConnection;
330 void cleanupSource();
331 void clearLastGPSInformation();
Abstract base class for connection to a GPS device.
Status status() const
Returns the status. Possible state are not connected, connected, data received.
QgsGpsInformation mLastGPSInformation
Last state of the gps related variables (e.g. position, time, ...)
virtual void parseData()=0
Parse available data source content.
void nmeaSentenceReceived(const QString &substring)
std::unique_ptr< QIODevice > mSource
Data source (e.g. serial device, socket, file,...)
QgsGpsInformation currentGPSInformation() const
Returns the current gps information (lat, lon, etc.)
void stateChanged(const QgsGpsInformation &info)
Encapsulates information relating to a GPS satellite.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)