Marble

GeoDataSoundCue.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Illya Kovalevskyy <illya.kovalevskyy@gmail.com>
4//
5
6#include "GeoDataSoundCue.h"
7#include "GeoDataTypes.h"
8
9namespace Marble
10{
11
12GeoDataSoundCue::GeoDataSoundCue()
13 : m_delayedStart(0)
14{
15}
16
17bool GeoDataSoundCue::operator==(const GeoDataSoundCue &other) const
18{
19 return this->m_delayedStart == other.m_delayedStart && this->m_href == other.m_href;
20}
21
22bool GeoDataSoundCue::operator!=(const GeoDataSoundCue &other) const
23{
24 return !this->operator==(other);
25}
26
27GeoDataSoundCue::~GeoDataSoundCue() = default;
28
29const char *GeoDataSoundCue::nodeType() const
30{
31 return GeoDataTypes::GeoDataSoundCueType;
32}
33
34QString GeoDataSoundCue::href() const
35{
36 return m_href;
37}
38
39void GeoDataSoundCue::setHref(const QString &url)
40{
41 m_href = url;
42}
43
44double GeoDataSoundCue::delayedStart() const
45{
46 return m_delayedStart;
47}
48
49void GeoDataSoundCue::setDelayedStart(double pause)
50{
51 m_delayedStart = pause;
52}
53
54} // namespace Marble
Q_SCRIPTABLE Q_NOREPLY void pause()
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 Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.