QGIS API Documentation  2.99.0-Master (40f86b2)
qgsgpsdconnection.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsgpsdconnection.h - description
3  -------------------
4  begin : October 4th, 2010
5  copyright : (C) 2010 by J├╝rgen E. Fischer, norBIT GmbH
6  email : jef at norbit dot de
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 QGSGPSDCONNECTION_H
19 #define QGSGPSDCONNECTION_H
20 
21 #include "qgis_core.h"
22 #include "qgsnmeaconnection.h"
23 
24 #include <QAbstractSocket>
25 
28 class CORE_EXPORT QgsGpsdConnection: public QgsNMEAConnection
29 {
30  Q_OBJECT
31  public:
32  QgsGpsdConnection( const QString &host, qint16 port, const QString &device );
34 
35  private slots:
36  void connected();
37  void error( QAbstractSocket::SocketError );
38 
39  private:
40  QString mDevice;
41 };
42 
43 #endif // QGSGPSDCONNECTION_H
Evaluates NMEA sentences coming from gpsd.
Evaluates NMEA sentences coming from a GPS device.