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 APRSTTY_H
0007 #define APRSTTY_H
0008 
0009 #include "AprsSource.h"
0010 #include <QString>
0011 
0012 namespace Marble {
0013     class AprsTTY : public AprsSource
0014     {
0015       public:
0016         explicit AprsTTY( const QString &ttyName );
0017         ~AprsTTY() 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_ttyName;
0028         int     m_numErrors;
0029     };
0030 }
0031 
0032 #endif /* APRSTTY_H */