File indexing completed on 2024-04-28 03:50:13
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2010 Wes Hardaker <hardaker@users.sourceforge.net> 0004 // 0005 0006 #ifndef APRSTCPIP_H 0007 #define APRSTCPIP_H 0008 0009 #include "AprsSource.h" 0010 #include <QString> 0011 0012 namespace Marble { 0013 class AprsTCPIP : public AprsSource 0014 { 0015 public: 0016 AprsTCPIP( const QString& hostName, int port ); 0017 ~AprsTCPIP() override; 0018 0019 QString sourceName() const override; 0020 QIODevice *openSocket() override; 0021 void checkReadReturn( int length, QIODevice **socket, 0022 AprsGatherer *gatherer ) override; 0023 0024 bool canDoDirect() const override; 0025 0026 private: 0027 QString m_hostName; 0028 int m_port; 0029 int m_numErrors; 0030 }; 0031 } 0032 0033 #endif /* APRSTCPIP_H */