Marble

GeoDataTour.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 "GeoDataTour.h"
7#include "GeoDataTour_p.h"
8
9namespace Marble
10{
11
12const GeoDataTour GeoDataTour::null;
13
14GeoDataTour::GeoDataTour()
15 : GeoDataFeature(new GeoDataTourPrivate)
16{
17 // nothing to do
18}
19
20GeoDataTour::GeoDataTour(const GeoDataTour &other)
21 : GeoDataFeature(other, new GeoDataTourPrivate(*other.d_func()))
22{
23}
24
25GeoDataTour::~GeoDataTour()
26{
27 // nothing to do;
28}
29
30GeoDataTour &GeoDataTour::operator=(const GeoDataTour &other)
31{
32 if (this != &other) {
33 Q_D(GeoDataTour);
34 *d = *other.d_func();
35 }
36
37 return *this;
38}
39
40bool GeoDataTour::operator==(const GeoDataTour &other) const
41{
42 Q_D(const GeoDataTour);
43 return equals(other) && *d->m_playlist == *other.d_func()->m_playlist;
44}
45
46bool GeoDataTour::operator!=(const GeoDataTour &other) const
47{
48 return !this->operator==(other);
49}
50
51GeoDataFeature *GeoDataTour::clone() const
52{
53 return new GeoDataTour(*this);
54}
55
56GeoDataPlaylist *GeoDataTour::playlist()
57{
58 Q_D(GeoDataTour);
59 return d->m_playlist;
60}
61
62const GeoDataPlaylist *GeoDataTour::playlist() const
63{
64 Q_D(const GeoDataTour);
65 return d->m_playlist;
66}
67
68void GeoDataTour::setPlaylist(GeoDataPlaylist *playlist)
69{
70 Q_D(GeoDataTour);
71 d->m_playlist = playlist;
72 d->m_playlist->setParent(this);
73}
74
75const char *GeoDataTour::nodeType() const
76{
77 return GeoDataTypes::GeoDataTourType;
78}
79
80} // namespace Marble
bool equals(const QVariant &lhs, const QVariant &rhs)
bool operator==(const StyleDelim &l, const StyleDelim &r)
Binds a QML item to a specific geodetic location in screen coordinates.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.