Marble

GeoDataTourControl.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 "GeoDataTourControl.h"
7
8#include "GeoDataTypes.h"
9
10namespace Marble
11{
12
13GeoDataTourControl::GeoDataTourControl()
14 : m_playMode(Play)
15{
16}
17
18GeoDataTourControl::~GeoDataTourControl() = default;
19
20bool GeoDataTourControl::operator==(const GeoDataTourControl &other) const
21{
22 return this->m_playMode == other.m_playMode;
23}
24
25bool GeoDataTourControl::operator!=(const GeoDataTourControl &other) const
26{
27 return !this->operator==(other);
28}
29
30const char *GeoDataTourControl::nodeType() const
31{
32 return GeoDataTypes::GeoDataTourControlType;
33}
34
35GeoDataTourControl::PlayMode GeoDataTourControl::playMode() const
36{
37 return m_playMode;
38}
39
40void GeoDataTourControl::setPlayMode(PlayMode mode)
41{
42 m_playMode = mode;
43}
44
45} // namespace Marble
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
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 Fri Dec 27 2024 11:50:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.