Marble

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

KDE's Doxygen guidelines are available online.