QGIS API Documentation 3.99.0-Master (2fe06baccd8)
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:
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
virtual void parseData()=0
Parse available data source content.
QgsGpsConnection(QIODevice *dev)
Constructor.
void processVtgSentence(const char *data, int len)
process VTG sentence
void processRmcSentence(const char *data, int len)
process RMC sentence
void processHchdgSentence(const char *data, int len)
process HCHDG sentence
void processGgaSentence(const char *data, int len)
process GGA sentence
void processGsvSentence(const char *data, int len)
process GSV sentence
void processGstSentence(const char *data, int len)
process GST sentence
void processHdtSentence(const char *data, int len)
process HDT sentence
void processGsaSentence(const char *data, int len)
process GSA sentence
QString mStringBuffer
Store data from the device before it is processed.
QgsNmeaConnection(QIODevice *device)
Constructs a QgsNmeaConnection with given device.
void processStringBuffer()
Splits mStringBuffer into sentences and calls libnmea.
#define SIP_TRANSFER
Definition qgis_sip.h:36