Marble

GeoDataWait.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Mihail Ivchenko <ematirov@gmail.com>
4//
5
6#include "GeoDataWait.h"
7
8#include "GeoDataTypes.h"
9
10namespace Marble
11{
12
13GeoDataWait::GeoDataWait()
14 : m_duration(0.0)
15{
16}
17
18GeoDataWait::~GeoDataWait() = default;
19
20bool GeoDataWait::operator==(const GeoDataWait &other) const
21{
22 return this->m_duration == other.m_duration;
23}
24
25bool GeoDataWait::operator!=(const GeoDataWait &other) const
26{
27 return !this->operator==(other);
28}
29
30const char *GeoDataWait::nodeType() const
31{
32 return GeoDataTypes::GeoDataWaitType;
33}
34
35double GeoDataWait::duration() const
36{
37 return m_duration;
38}
39
40void GeoDataWait::setDuration(double duration)
41{
42 m_duration = duration;
43}
44
45} // namespace Marble
bool operator==(const StyleDelim &l, const StyleDelim &r)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.