Marble

GeoDataStyleSelector.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2007 Murad Tagirov <[email protected]>
4 //
5 
6 
7 #include "GeoDataStyleSelector.h"
8 #include <QDataStream>
9 
10 #include "GeoDataTypes.h"
11 
12 namespace Marble
13 {
14 
15 class GeoDataStyleSelectorPrivate
16 {
17 };
18 
19 GeoDataStyleSelector::GeoDataStyleSelector() :
20  GeoDataObject(),
21  d( nullptr )
22 {
23 }
24 
25 GeoDataStyleSelector::GeoDataStyleSelector( const GeoDataStyleSelector& other ) :
26  GeoDataObject( other ),
27  d( nullptr )
28 {
29 }
30 
31 GeoDataStyleSelector::~GeoDataStyleSelector()
32 {
33  delete d;
34 }
35 
37 {
38  GeoDataObject::operator=( other );
39  return *this;
40 }
41 
42 bool GeoDataStyleSelector::operator==( const GeoDataStyleSelector &other ) const
43 {
44  return GeoDataObject::equals( other );
45 }
46 
47 bool GeoDataStyleSelector::operator!=( const GeoDataStyleSelector &other ) const
48 {
49  return !this->operator==( other );
50 }
51 
53 {
54  GeoDataObject::pack( stream );
55 }
56 
58 {
59  GeoDataObject::unpack( stream );
60 }
61 
62 }
void unpack(QDataStream &steam) override
Reimplemented from Serializable.
Binds a QML item to a specific geodetic location in screen coordinates.
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.
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.
an abstract base class for the style classes
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Jan 25 2022 23:11:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.