Marble

GeoDataStyleSelector.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2007 Murad Tagirov <tmurad@gmail.com>
4//
5
6#include "GeoDataStyleSelector.h"
7#include <QDataStream>
8
9#include "GeoDataTypes.h"
10
11namespace Marble
12{
13
14class GeoDataStyleSelectorPrivate
15{
16};
17
18GeoDataStyleSelector::GeoDataStyleSelector()
20 , d(nullptr)
21{
22}
23
24GeoDataStyleSelector::GeoDataStyleSelector(const GeoDataStyleSelector &other)
25 : GeoDataObject(other)
26 , d(nullptr)
27{
28}
29
30GeoDataStyleSelector::~GeoDataStyleSelector()
31{
32 delete d;
33}
34
35GeoDataStyleSelector &GeoDataStyleSelector::operator=(const GeoDataStyleSelector &other)
36{
37 GeoDataObject::operator=(other);
38 return *this;
39}
40
41bool GeoDataStyleSelector::operator==(const GeoDataStyleSelector &other) const
42{
43 return GeoDataObject::equals(other);
44}
45
46bool GeoDataStyleSelector::operator!=(const GeoDataStyleSelector &other) const
47{
48 return !this->operator==(other);
49}
50
52{
53 GeoDataObject::pack(stream);
54}
55
60
61}
A base class for all geodata objects.
virtual bool equals(const GeoDataObject &other) const
Compares the value of id and targetId of the two objects.
void pack(QDataStream &stream) const override
Reimplemented from Serializable.
void unpack(QDataStream &steam) override
Reimplemented from Serializable.
an abstract base class for the style classes
GeoDataStyleSelector & operator=(const GeoDataStyleSelector &other)
assignment operator
void unpack(QDataStream &stream) override
Unserialize the styleselector from a stream.
void pack(QDataStream &stream) const override
Serialize the styleselector to a stream.
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.