• 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
GeoAprsCoordinates.cpp
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 #include "GeoAprsCoordinates.h"
12 
13 using namespace Marble;
14 
15 GeoAprsCoordinates::GeoAprsCoordinates( qreal lon, qreal lat, int where )
16  : GeoDataCoordinates( lon, lat, 0, GeoDataCoordinates::Degree ),
17  m_seenFrom( where )
18 {
19  m_timestamp = QTime::currentTime();
20  m_timestamp.start();
21 }
22 
23 GeoAprsCoordinates::~GeoAprsCoordinates()
24 {
25 }
26 
27 void
28 GeoAprsCoordinates::addSeenFrom( int where )
29 {
30  m_seenFrom = ( m_seenFrom | where );
31 }
32 
33 int
34 GeoAprsCoordinates::seenFrom() const
35 {
36  return m_seenFrom;
37 }
38 
39 void
40 GeoAprsCoordinates::setTimestamp( const QTime &t )
41 {
42  m_timestamp = t;
43  m_timestamp.start();
44 }
45 
46 const QTime &
47 GeoAprsCoordinates::timestamp() const
48 {
49  return m_timestamp;
50 }
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::GeoAprsCoordinates::GeoAprsCoordinates
GeoAprsCoordinates(qreal lon, qreal lat, int where)
Definition: GeoAprsCoordinates.cpp:15
Marble::GeoAprsCoordinates::setTimestamp
void setTimestamp(const QTime &t)
Definition: GeoAprsCoordinates.cpp:40
GeoAprsCoordinates.h
QTime
Marble::GeoAprsCoordinates::addSeenFrom
void addSeenFrom(int where)
Definition: GeoAprsCoordinates.cpp:28
Marble::GeoAprsCoordinates::~GeoAprsCoordinates
~GeoAprsCoordinates()
Definition: GeoAprsCoordinates.cpp:23
Marble::GeoAprsCoordinates::seenFrom
int seenFrom() const
Definition: GeoAprsCoordinates.cpp:34
QTime::currentTime
QTime currentTime()
Marble::GeoAprsCoordinates::timestamp
const QTime & timestamp() const
Definition: GeoAprsCoordinates.cpp:47
QTime::start
void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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