20 #include <QCoreApplication>
23 #include <QStringList>
26 #include "qextserialport.h"
27 #include "qextserialenumerator.h"
35 QObject::connect( dev, SIGNAL( readyRead() ),
this, SLOT(
parseData() ) );
50 bool connected =
mSource->open( QIODevice::ReadWrite | QIODevice::Unbuffered );
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.
void clearLastGPSInformation()
bool connect()
Opens connection to device.
void cleanupSource()
Closes and deletes mSource.