File indexing completed on 2024-05-12 03:50:18

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2013 Illya Kovalevskyy <illya.kovalevskyy@gmail.com>
0004 //
0005 
0006 #include "GeoDataSoundCue.h"
0007 #include "GeoDataTypes.h"
0008 
0009 namespace Marble
0010 {
0011 
0012 GeoDataSoundCue::GeoDataSoundCue() :
0013     m_delayedStart(0)
0014 {
0015 }
0016 
0017 bool GeoDataSoundCue::operator==(const GeoDataSoundCue& other) const
0018 {
0019     return this->m_delayedStart == other.m_delayedStart && this->m_href == other.m_href;
0020 }
0021 
0022 bool GeoDataSoundCue::operator!=(const GeoDataSoundCue& other) const
0023 {
0024     return !this->operator==(other);
0025 }
0026 
0027 GeoDataSoundCue::~GeoDataSoundCue()
0028 {
0029 }
0030 
0031 const char *GeoDataSoundCue::nodeType() const
0032 {
0033     return GeoDataTypes::GeoDataSoundCueType;
0034 }
0035 
0036 QString GeoDataSoundCue::href() const
0037 {
0038     return m_href;
0039 }
0040 
0041 void GeoDataSoundCue::setHref(const QString &url)
0042 {
0043     m_href = url;
0044 }
0045 
0046 double GeoDataSoundCue::delayedStart() const
0047 {
0048     return m_delayedStart;
0049 }
0050 
0051 void GeoDataSoundCue::setDelayedStart(double pause)
0052 {
0053     m_delayedStart = pause;
0054 }
0055 
0056 } // namespace Marble