Marble

GeoDataStyleSelector.cpp
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2007 Murad Tagirov <[email protected]>
9 //
10 
11 
12 #include "GeoDataStyleSelector.h"
13 #include <QDataStream>
14 
15 #include "GeoDataTypes.h"
16 
17 namespace Marble
18 {
19 
20 class GeoDataStyleSelectorPrivate
21 {
22 };
23 
24 GeoDataStyleSelector::GeoDataStyleSelector() :
25  GeoDataObject(),
26  d( nullptr )
27 {
28 }
29 
30 GeoDataStyleSelector::GeoDataStyleSelector( const GeoDataStyleSelector& other ) :
31  GeoDataObject( other ),
32  d( nullptr )
33 {
34 }
35 
36 GeoDataStyleSelector::~GeoDataStyleSelector()
37 {
38  delete d;
39 }
40 
42 {
43  GeoDataObject::operator=( other );
44  return *this;
45 }
46 
47 bool GeoDataStyleSelector::operator==( const GeoDataStyleSelector &other ) const
48 {
49  return GeoDataObject::equals( other );
50 }
51 
52 bool GeoDataStyleSelector::operator!=( const GeoDataStyleSelector &other ) const
53 {
54  return !this->operator==( other );
55 }
56 
58 {
59  GeoDataObject::pack( stream );
60 }
61 
63 {
64  GeoDataObject::unpack( stream );
65 }
66 
67 }
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-2020 The KDE developers.
Generated on Mon Jul 13 2020 23:19:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.