18 #ifndef QGSGPSCONNECTION_H 19 #define QGSGPSCONNECTION_H 26 #include "qgis_core.h" 69 int satellitesUsed = 0;
72 bool satInfoComplete =
false;
100 if ( sipCpp->inherits(
"QgsGpsdConnection" ) )
101 sipType = sipType_QgsGpsdConnection;
102 else if ( sipCpp->inherits(
"QgsNmeaConnection" ) )
103 sipType = sipType_QgsNmeaConnection;
142 void nmeaSentenceReceived(
const QString &substring );
146 QIODevice *mSource =
nullptr;
154 void cleanupSource();
155 void clearLastGPSInformation();
159 virtual void parseData() = 0;
162 #endif // QGSGPSCONNECTION_H
QgsGpsInformation mLastGPSInformation
Last state of the gps related variables (e.g. position, time, ...)
QgsGpsInformation currentGPSInformation() const
Returns the current gps information (lat, lon, etc.)
Status mStatus
Connection status.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Status status() const
Returns the status. Possible state are not connected, connected, data received.
Abstract base class for connection to a GPS device.