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

KDE's Doxygen guidelines are available online.