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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • aprs
AprsGatherer.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 APRSGATHERER_H
12 #define APRSGATHERER_H
13 
14 #include <QThread>
15 #include <QMap>
16 #include <QString>
17 #include <QAbstractSocket>
18 #include <QMutex>
19 #include <QIODevice>
20 
21 #include "AprsSource.h"
22 #include "AprsObject.h"
23 
24 namespace Marble {
25 
26  class AprsGatherer : public QThread
27  {
28  Q_OBJECT
29 
30  public:
31  AprsGatherer( AprsSource *from,
32  QMap<QString, AprsObject *> *objects,
33  QMutex *mutex,
34  QString *filter
35  );
36  AprsGatherer( QIODevice *from,
37  QMap<QString, AprsObject *> *objects,
38  QMutex *mutex,
39  QString *filter
40  );
41  void run();
42 
43  void addObject( const QString &callSign,
44  qreal latitude, qreal longitude, bool canDoDirect,
45  const QString &routePath,
46  const QChar &symbolTable,
47  const QChar &symbolCode );
48 
49  void setDumpOutput( bool to );
50  bool dumpOutput();
51 
52  void setSeenFrom ( GeoAprsCoordinates::SeenFrom seenFrom );
53  GeoAprsCoordinates::SeenFrom seenFrom();
54 
55  void shutDown();
56  void sleepFor(int seconds);
57 
58  private:
59  void initMicETables();
60  qreal calculateLongitude( const QString &threeBytes,
61  int offset, bool isEast );
62 
63  AprsSource *m_source;
64  QIODevice *m_socket;
65  QString *m_filter;
66  bool m_running;
67  bool m_dumpOutput;
68  GeoAprsCoordinates::SeenFrom m_seenFrom;
69  QString m_sourceName;
70 
71  // Shared with the parent thread
72  QMutex *m_mutex;
73  QMap<QString, AprsObject *> *m_objects;
74 
75  QMap<QPair<QChar, QChar>, QString> m_pixmaps;
76 
77  // Mic-E decoding tables
78  QMap<QChar, int> m_dstCallDigits;
79  QMap<QChar, bool> m_dstCallSouthEast;
80  QMap<QChar, int> m_dstCallLongitudeOffset;
81  QMap<QChar, int> m_dstCallMessageBit;
82 
83  QMap<int, QString> m_standardMessageText;
84  QMap<int, QString> m_customMessageText;
85  QMap<QChar, int> m_infoFieldByte1;
86  };
87 }
88 
89 #endif /* APRSGATHERER_H */
Marble::AprsGatherer::setSeenFrom
void setSeenFrom(GeoAprsCoordinates::SeenFrom seenFrom)
Definition: AprsGatherer.cpp:272
Marble::AprsGatherer::seenFrom
GeoAprsCoordinates::SeenFrom seenFrom()
Definition: AprsGatherer.cpp:278
AprsSource.h
Marble::GeoAprsCoordinates::SeenFrom
SeenFrom
Definition: GeoAprsCoordinates.h:23
Marble::AprsGatherer::shutDown
void shutDown()
Definition: AprsGatherer.cpp:201
Marble::AprsGatherer::addObject
void addObject(const QString &callSign, qreal latitude, qreal longitude, bool canDoDirect, const QString &routePath, const QChar &symbolTable, const QChar &symbolCode)
Definition: AprsGatherer.cpp:207
AprsObject.h
Marble::AprsSource
Definition: AprsSource.h:20
Marble::AprsGatherer::run
void run()
Definition: AprsGatherer.cpp:56
Marble::AprsGatherer::AprsGatherer
AprsGatherer(AprsSource *from, QMap< QString, AprsObject * > *objects, QMutex *mutex, QString *filter)
Definition: AprsGatherer.cpp:20
Marble::AprsGatherer::sleepFor
void sleepFor(int seconds)
Definition: AprsGatherer.cpp:285
Marble::AprsGatherer::setDumpOutput
void setDumpOutput(bool to)
Definition: AprsGatherer.cpp:260
Marble::AprsGatherer
Definition: AprsGatherer.h:26
QThread
Marble::AprsGatherer::dumpOutput
bool dumpOutput()
Definition: AprsGatherer.cpp:266
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:48 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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