|
QGIS API Documentation
master-6227475
|
00001 /*************************************************************************** 00002 qgsnmeaconnection.h - description 00003 ------------------- 00004 begin : November 30th, 2009 00005 copyright : (C) 2009 by Marco Hugentobler 00006 email : marco at hugis dot net 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 QGSNMEACONNECTION_H 00019 #define QGSNMEACONNECTION_H 00020 00021 #include "qgsgpsconnection.h" 00022 00024 class CORE_EXPORT QgsNMEAConnection: public QgsGPSConnection 00025 { 00026 Q_OBJECT 00027 public: 00028 QgsNMEAConnection( QIODevice *dev ); 00029 ~QgsNMEAConnection(); 00030 00031 protected slots: 00033 void parseData(); 00034 00035 protected: 00037 QString mStringBuffer; 00039 void processStringBuffer(); 00040 //handle the different sentence type 00041 void processGGASentence( const char* data, int len ); 00042 void processRMCSentence( const char* data, int len ); 00043 void processGSVSentence( const char* data, int len ); 00044 void processVTGSentence( const char* data, int len ); 00045 void processGSASentence( const char* data, int len ); 00046 }; 00047 00048 #endif // QGSNMEACONNECTION_H