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()
Status mStatus
Connection status.
QgsGPSConnection(QIODevice *dev)
Constructor.
void setSource(QIODevice *source)
Sets the GPS source.
void setTime(const QTime &time)
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
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.
void setDate(const QDate &date)
virtual ~QgsGPSConnection()
QIODevice * mSource
Data source (e.g.
bool connect()
Opens connection to device.
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)