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 "GeoDataTourControl.h"
0007 
0008 #include "GeoDataTypes.h"
0009 
0010 namespace Marble
0011 {
0012 
0013 GeoDataTourControl::GeoDataTourControl() :
0014     m_playMode(Play)
0015 {
0016 }
0017 
0018 GeoDataTourControl::~GeoDataTourControl()
0019 {
0020 }
0021 
0022 bool GeoDataTourControl::operator==(const GeoDataTourControl& other) const
0023 {
0024     return this->m_playMode == other.m_playMode;
0025 }
0026 
0027 bool GeoDataTourControl::operator!=(const GeoDataTourControl& other) const
0028 {
0029     return !this->operator==(other);
0030 }
0031 
0032 const char *GeoDataTourControl::nodeType() const
0033 {
0034     return GeoDataTypes::GeoDataTourControlType;
0035 }
0036 
0037 GeoDataTourControl::PlayMode GeoDataTourControl::playMode() const
0038 {
0039     return m_playMode;
0040 }
0041 
0042 void GeoDataTourControl::setPlayMode(PlayMode mode)
0043 {
0044     m_playMode = mode;
0045 }
0046 
0047 } // namespace Marble