20 #include <QCoreApplication> 23 #include <QStringList> 26 #include "qextserialport.h" 27 #include "qextserialenumerator.h" 34 clearLastGPSInformation();
35 QObject::connect( dev, SIGNAL( readyRead() ),
this, SLOT(
parseData() ) );
50 bool connected =
mSource->open( QIODevice::ReadWrite | QIODevice::Unbuffered );
69 void QgsGPSConnection::cleanupSource()
83 clearLastGPSInformation();
86 void QgsGPSConnection::clearLastGPSInformation()
Status mStatus
Connection status.
QgsGPSConnection(QIODevice *dev)
Constructor.
void setSource(QIODevice *source)
Sets the GPS source.
virtual void parseData()=0
Parse available data source content.
bool close()
Closes connection to device.
QgsGPSInformation mLastGPSInformation
Last state of the gps related variables (e.g.
virtual ~QgsGPSConnection()
QIODevice * mSource
Data source (e.g.
bool connect()
Opens connection to device.