• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • aprs
AprsSource.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2010 Wes Hardaker <hardaker@users.sourceforge.net>
9 //
10 
11 #ifndef APRSSOURCE_H
12 #define APRSSOURCE_H
13 
14 #include <QIODevice>
15 
16 namespace Marble {
17 
18  class AprsGatherer;
19 
20  class AprsSource {
21  public:
22  explicit AprsSource( QIODevice *insocket = NULL );
23  virtual ~AprsSource();
24 
25  virtual QIODevice *openSocket() = 0;
26  virtual QString sourceName() const = 0;
27 
28  QIODevice *socket();
29  void setSocket( QIODevice * );
30 
31  // @brief Checks the results of an executed read() code.
32  //
33  // Checks the results of read() return code specified in @p
34  // length from the socket created by this source to see if the
35  // socket needs to be reopened. If it needs to be reopened a
36  // new socket will be placed into the @p socket pointer.
37  // @p gatherer should be a pointer to the gatherer that called
38  // the function and implements a thread-safe sleep().
39  virtual void checkReadReturn( int length, QIODevice **socket,
40  AprsGatherer *gatherer ) = 0;
41 
42  // Specifies whether or not this type of source can directly
43  // hear the transmitting station. Only sources for devices
44  // that are actually capable of receiving radio signals will
45  // return true.
46  virtual bool canDoDirect() const = 0;
47 
48  private:
49  QIODevice *m_socket;
50  };
51 
52 }
53 
54 
55 #endif /* APRSSOURCE_H */
QIODevice
Marble::AprsSource::canDoDirect
virtual bool canDoDirect() const =0
Marble::AprsSource::AprsSource
AprsSource(QIODevice *insocket=NULL)
Definition: AprsSource.cpp:15
Marble::AprsSource::openSocket
virtual QIODevice * openSocket()=0
Marble::AprsSource
Definition: AprsSource.h:20
Marble::AprsSource::sourceName
virtual QString sourceName() const =0
QString
Marble::AprsSource::checkReadReturn
virtual void checkReadReturn(int length, QIODevice **socket, AprsGatherer *gatherer)=0
Marble::AprsSource::setSocket
void setSocket(QIODevice *)
Definition: AprsSource.cpp:31
Marble::AprsSource::~AprsSource
virtual ~AprsSource()
Definition: AprsSource.cpp:20
Marble::AprsSource::socket
QIODevice * socket()
Definition: AprsSource.cpp:25
Marble::AprsGatherer
Definition: AprsGatherer.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal