20 #include <QCoreApplication> 23 #include <QStringList> 26 #include "qextserialport.h" 27 #include "qextserialenumerator.h" 34 clearLastGPSInformation();
50 bool connected =
mSource->open( QIODevice::ReadWrite | QIODevice::Unbuffered );
69 void QgsGpsConnection::cleanupSource()
83 clearLastGPSInformation();
86 void QgsGpsConnection::clearLastGPSInformation()
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.
QIODevice * mSource
Data source (e.g. serial device, socket, file,...)
bool connect()
Opens connection to device.
QgsGpsConnection(QIODevice *dev)
Constructor.
Status mStatus
Connection status.
bool close()
Closes connection to device.