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 #include "GeoAprsCoordinates.h" 0007 0008 using namespace Marble; 0009 0010 GeoAprsCoordinates::GeoAprsCoordinates( qreal lon, qreal lat, int where ) 0011 : GeoDataCoordinates( lon, lat, 0, GeoDataCoordinates::Degree ), 0012 m_seenFrom( where ) 0013 { 0014 m_timestamp.start(); 0015 } 0016 0017 GeoAprsCoordinates::~GeoAprsCoordinates() 0018 { 0019 } 0020 0021 void 0022 GeoAprsCoordinates::addSeenFrom( int where ) 0023 { 0024 m_seenFrom = ( m_seenFrom | where ); 0025 } 0026 0027 int 0028 GeoAprsCoordinates::seenFrom() const 0029 { 0030 return m_seenFrom; 0031 } 0032 0033 void 0034 GeoAprsCoordinates::resetTimestamp() 0035 { 0036 m_timestamp.start(); 0037 } 0038 0039 const QElapsedTimer & 0040 GeoAprsCoordinates::timestamp() const 0041 { 0042 return m_timestamp; 0043 }