|
QGIS API Documentation
master-6227475
|
00001 /*************************************************************************** 00002 qgsgpsdconnection.h - description 00003 ------------------- 00004 begin : October 4th, 2010 00005 copyright : (C) 2010 by Jürgen E. Fischer, norBIT GmbH 00006 email : jef at norbit dot de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef QGSGPSDCONNECTION_H 00019 #define QGSGPSDCONNECTION_H 00020 00021 #include "qgsnmeaconnection.h" 00022 00023 #include <QAbstractSocket> 00024 00026 class CORE_EXPORT QgsGpsdConnection: public QgsNMEAConnection 00027 { 00028 Q_OBJECT 00029 public: 00030 QgsGpsdConnection( QString host, qint16 port, QString device ); 00031 ~QgsGpsdConnection(); 00032 00033 private slots: 00034 void connected(); 00035 void error( QAbstractSocket::SocketError ); 00036 00037 private: 00038 QString mDevice; 00039 }; 00040 00041 #endif // QGSGPSDCONNECTION_H