QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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:
37 QgsNmeaConnection( QIODevice *device SIP_TRANSFER );
38
39 protected slots:
41 void parseData() override;
42
43 protected:
48 //handle the different sentence type
50 void processGgaSentence( const char *data, int len );
52 void processRmcSentence( const char *data, int len );
54 void processGsvSentence( const char *data, int len );
56 void processVtgSentence( const char *data, int len );
58 void processGsaSentence( const char *data, int len );
60 void processGstSentence( const char *data, int len );
62 void processHdtSentence( const char *data, int len );
64 void processHchdgSentence( const char *data, int len );
65};
66
67#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:35