QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
24 class CORE_EXPORT QgsNMEAConnection: public QgsGPSConnection
25 {
26  Q_OBJECT
27  public:
28  QgsNMEAConnection( QIODevice *dev );
30 
31  protected slots:
33  void parseData() override;
34 
35  protected:
37  QString mStringBuffer;
39  void processStringBuffer();
40  //handle the different sentence type
41  void processGGASentence( const char* data, int len );
42  void processRMCSentence( const char* data, int len );
43  void processGSVSentence( const char* data, int len );
44  void processVTGSentence( const char* data, int len );
45  void processGSASentence( const char* data, int len );
46 };
47 
48 #endif // QGSNMEACONNECTION_H