Marble

GeoDataFolder.cpp
1/*
2 SPDX-FileCopyrightText: 2007 Murad Tagirov <tmurad@gmail.com>
3 SPDX-FileCopyrightText: 2007 Nikolas Zimmermann <zimmermann@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#include "GeoDataFolder.h"
9
10#include "GeoDataTypes.h"
11
12#include "GeoDataContainer_p.h"
13
14namespace Marble
15{
16
17class GeoDataFolderPrivate : public GeoDataContainerPrivate
18{
19};
20
21
22GeoDataFolder::GeoDataFolder()
23 : GeoDataContainer( new GeoDataFolderPrivate )
24{
25}
26
27GeoDataFolder::GeoDataFolder( const GeoDataFolder& other )
28 : GeoDataContainer(other, new GeoDataFolderPrivate(*other.d_func()))
29{
30}
31
32GeoDataFolder::~GeoDataFolder()
33{
34}
35
36GeoDataFolder& GeoDataFolder::operator=(const GeoDataFolder& other)
37{
38 if (this != &other) {
39 Q_D(GeoDataFolder);
40 *d = *other.d_func();
41 }
42
43 return *this;
44}
45
46bool GeoDataFolder::operator==( const GeoDataFolder &other ) const
47{
48 return GeoDataContainer::equals( other );
49}
50
51bool GeoDataFolder::operator!=( const GeoDataFolder &other ) const
52{
53 return !this->operator==( other );
54}
55
56const char* GeoDataFolder::nodeType() const
57{
58 return GeoDataTypes::GeoDataFolderType;
59}
60
61GeoDataFeature * GeoDataFolder::clone() const
62{
63 return new GeoDataFolder(*this);
64}
65
66}
A base class for all geodata features.
A container that is used to arrange other GeoDataFeatures.
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 Fri Jun 21 2024 12:00:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.