QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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
28class CORE_EXPORT QgsNmeaConnection: public QgsGpsConnection
29{
30 Q_OBJECT
31 public:
32
38 QgsNmeaConnection( QIODevice *device SIP_TRANSFER );
39
40 protected slots:
42 void parseData() override;
43
44 protected:
48 void processStringBuffer();
49 //handle the different sentence type
51 void processGgaSentence( const char *data, int len );
53 void processRmcSentence( const char *data, int len );
55 void processGsvSentence( const char *data, int len );
57 void processVtgSentence( const char *data, int len );
59 void processGsaSentence( const char *data, int len );
61 void processGstSentence( const char *data, int len );
63 void processHdtSentence( const char *data, int len );
65 void processHchdgSentence( const char *data, int len );
66};
67
68#endif // QGSNMEACONNECTION_H
Abstract base class for connection to a GPS device.
virtual void parseData()=0
Parse available data source content.
Evaluates NMEA sentences coming from a GPS device.
QString mStringBuffer
Store data from the device before it is processed.
#define SIP_TRANSFER
Definition qgis_sip.h:36