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();
232 int satellitesUsed = 0;
247 bool satInfoComplete =
false;
253 bool isValid()
const;
266 QString qualityDescription()
const;
283 if ( sipCpp->inherits(
"QgsGpsdConnection" ) )
284 sipType = sipType_QgsGpsdConnection;
285 else if ( sipCpp->inherits(
"QgsNmeaConnection" ) )
286 sipType = sipType_QgsNmeaConnection;
337 void cleanupSource();
338 void clearLastGPSInformation();
GpsQualityIndicator
GPS signal quality indicator.
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)