Marble

GeoDataResourceMap.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2013 Sanjiban Bairagya <[email protected]>
4 //
5 
6 #include "GeoDataResourceMap.h"
7 
8 #include "GeoDataAlias.h"
9 #include "GeoDataTypes.h"
10 
11 namespace Marble {
12 
13 class GeoDataResourceMapPrivate
14 {
15 public:
16  GeoDataAlias m_alias;
17  GeoDataResourceMapPrivate();
18 };
19 
20 GeoDataResourceMapPrivate::GeoDataResourceMapPrivate() :
21  m_alias()
22 {
23  // nothing to do
24 }
25 
26 GeoDataResourceMap::GeoDataResourceMap() : d( new GeoDataResourceMapPrivate )
27 {
28  // nothing to do
29 }
30 
31 GeoDataResourceMap::GeoDataResourceMap( const Marble::GeoDataResourceMap &other ) :
32  GeoNode( other ), d( new GeoDataResourceMapPrivate( *other.d ) )
33 {
34  // nothing to do
35 }
36 
37 GeoDataResourceMap &GeoDataResourceMap::operator=( const GeoDataResourceMap &other )
38 {
39  *d = *other.d;
40  return *this;
41 }
42 
43 bool GeoDataResourceMap::operator==( const GeoDataResourceMap &other ) const
44 {
45  return d->m_alias == other.d->m_alias;
46 }
47 
48 bool GeoDataResourceMap::operator!=( const GeoDataResourceMap &other ) const
49 {
50  return !this->operator==( other );
51 }
52 
53 GeoDataResourceMap::~GeoDataResourceMap()
54 {
55  delete d;
56 }
57 
58 const char *GeoDataResourceMap::nodeType() const
59 {
60  return GeoDataTypes::GeoDataResourceMapType;
61 }
62 
63 const GeoDataAlias &GeoDataResourceMap::alias() const
64 {
65  return d->m_alias;
66 }
67 
68 GeoDataAlias &GeoDataResourceMap::alias()
69 {
70  return d->m_alias;
71 }
72 
73 void GeoDataResourceMap::setAlias( const GeoDataAlias &alias )
74 {
75  d->m_alias = alias;
76 }
77 
78 QString GeoDataResourceMap::sourceHref() const
79 {
80  return d->m_alias.sourceHref();
81 }
82 
83 QString GeoDataResourceMap::targetHref() const
84 {
85  return d->m_alias.targetHref();
86 }
87 
88 void GeoDataResourceMap::setSourceHref( const QString& sourceHref )
89 {
90  d->m_alias.setSourceHref( sourceHref );
91 }
92 
93 void GeoDataResourceMap::setTargetHref( const QString& targetHref )
94 {
95  d->m_alias.setTargetHref( targetHref );
96 }
97 
98 
99 
100 }
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.