18 #ifndef QGSGPSCONNECTION_H 19 #define QGSGPSCONNECTION_H 26 #include "qgis_core.h" 75 if ( sipCpp->inherits(
"QgsGpsdConnection" ) )
76 sipType = sipType_QgsGpsdConnection;
77 else if ( sipCpp->inherits(
"QgsNmeaConnection" ) )
78 sipType = sipType_QgsNmeaConnection;
117 void nmeaSentenceReceived(
const QString &substring );
121 QIODevice *mSource =
nullptr;
129 void cleanupSource();
130 void clearLastGPSInformation();
134 virtual void parseData() = 0;
137 #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)
Abstract base class for connection to a GPS device.
Status status() const
Returns the status. Possible state are not connected, connected, data received.