QGIS API Documentation  2.99.0-Master (5d67572)
qgsnmeaconnection.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsnmeaconnection.h - description
3  -------------------
4  begin : November 30th, 2009
5  copyright : (C) 2009 by Marco Hugentobler
6  email : marco at hugis dot net
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSNMEACONNECTION_H
19 #define QGSNMEACONNECTION_H
20 
21 #include "qgis_core.h"
22 #include "qgsgpsconnection.h"
23 
28 class CORE_EXPORT QgsNMEAConnection: public QgsGPSConnection
29 {
30  Q_OBJECT
31  public:
32  QgsNMEAConnection( QIODevice *dev );
33 
34  protected slots:
36  void parseData() override;
37 
38  protected:
40  QString mStringBuffer;
42  void processStringBuffer();
43  //handle the different sentence type
44  void processGGASentence( const char *data, int len );
45  void processRMCSentence( const char *data, int len );
46  void processGSVSentence( const char *data, int len );
47  void processVTGSentence( const char *data, int len );
48  void processGSASentence( const char *data, int len );
49 };
50 
51 #endif // QGSNMEACONNECTION_H
QString mStringBuffer
Store data from the device before it is processed.
virtual void parseData()=0
Parse available data source content.
Abstract base class for connection to a GPS device.
Evaluates NMEA sentences coming from a GPS device.