Marble

GeoDataChange.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#include "GeoDataChange.h"
7
8#include "GeoDataContainer_p.h"
9#include "GeoDataTypes.h"
10
11namespace Marble
12{
13
14class GeoDataChangePrivate : public GeoDataContainerPrivate
15{
16};
17
18GeoDataChange::GeoDataChange()
19 : GeoDataContainer(new GeoDataChangePrivate)
20{
21}
22
23GeoDataChange::GeoDataChange(const GeoDataChange &other)
24 : GeoDataContainer(other, new GeoDataChangePrivate(*other.d_func()))
25{
26}
27
28GeoDataChange &GeoDataChange::operator=(const GeoDataChange &other)
29{
30 if (this != &other) {
31 Q_D(GeoDataChange);
32 *d = *other.d_func();
33 }
34
35 return *this;
36}
37
38bool GeoDataChange::operator==(const GeoDataChange &other) const
39{
40 return GeoDataContainer::equals(other);
41}
42
43bool GeoDataChange::operator!=(const GeoDataChange &other) const
44{
45 return !this->operator==(other);
46}
47
48GeoDataChange::~GeoDataChange() = default;
49
50GeoDataFeature *GeoDataChange::clone() const
51{
52 return new GeoDataChange(*this);
53}
54
55const char *GeoDataChange::nodeType() const
56{
57 return GeoDataTypes::GeoDataChangeType;
58}
59
60}
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
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 Dec 20 2024 11:52:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.