QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 "qgsgpsconnection.h"
22 
26 class CORE_EXPORT QgsNMEAConnection: public QgsGPSConnection
27 {
28  Q_OBJECT
29  public:
32 
33  protected slots:
35  void parseData() override;
36 
37  protected:
41  void processStringBuffer();
42  //handle the different sentence type
43  void processGGASentence( const char* data, int len );
44  void processRMCSentence( const char* data, int len );
45  void processGSVSentence( const char* data, int len );
46  void processVTGSentence( const char* data, int len );
47  void processGSASentence( const char* data, int len );
48 };
49 
50 #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.