File indexing completed on 2024-04-28 03:50:12
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2010 Wes Hardaker <hardaker@users.sourceforge.net> 0004 // 0005 0006 #ifndef APRSFILE_H 0007 #define APRSFILE_H 0008 0009 #include "AprsSource.h" 0010 #include <QString> 0011 0012 namespace Marble { 0013 class AprsFile : public AprsSource 0014 { 0015 public: 0016 explicit AprsFile( const QString &fileName ); 0017 ~AprsFile() 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_fileName; 0028 int m_errorCount; 0029 }; 0030 } 0031 0032 #endif /* APRSFILE_H */