6 #include "GeoDataNetworkLink.h"
8 #include "GeoDataTypes.h"
9 #include "GeoDataLink.h"
13 class GeoDataNetworkLinkPrivate
16 bool m_refreshVisibility;
22 GeoDataNetworkLinkPrivate();
25 GeoDataNetworkLinkPrivate::GeoDataNetworkLinkPrivate() :
26 m_refreshVisibility(false), m_flyToView(false)
31 GeoDataNetworkLink::GeoDataNetworkLink() : d( new GeoDataNetworkLinkPrivate )
36 GeoDataNetworkLink::GeoDataNetworkLink(
const Marble::GeoDataNetworkLink &other ) :
37 GeoDataFeature( other ), d( new GeoDataNetworkLinkPrivate( *other.d ) )
42 GeoDataNetworkLink &GeoDataNetworkLink::operator=(
const GeoDataNetworkLink &other )
44 GeoDataFeature::operator=( other );
49 bool GeoDataNetworkLink::operator==(
const GeoDataNetworkLink &other )
const
51 return equals( other) &&
52 d->m_refreshVisibility == other.d->m_refreshVisibility &&
53 d->m_link == other.d->m_link &&
54 d->m_flyToView == other.d->m_flyToView;
57 bool GeoDataNetworkLink::operator!=(
const GeoDataNetworkLink &other )
const
62 GeoDataNetworkLink::~GeoDataNetworkLink()
67 GeoDataFeature * GeoDataNetworkLink::clone()
const
69 return new GeoDataNetworkLink(*
this);
73 const char *GeoDataNetworkLink::nodeType()
const
75 return GeoDataTypes::GeoDataNetworkLinkType;
78 bool GeoDataNetworkLink::refreshVisibility()
const
80 return d->m_refreshVisibility;
83 void GeoDataNetworkLink::setRefreshVisibility(
bool refreshVisibility )
85 d->m_refreshVisibility = refreshVisibility;
88 bool GeoDataNetworkLink::flyToView()
const
90 return d->m_flyToView;
93 void GeoDataNetworkLink::setFlyToView(
bool flyToView)
95 d->m_flyToView = flyToView;
98 GeoDataLink &GeoDataNetworkLink::link()
103 const GeoDataLink& GeoDataNetworkLink::link()
const
108 void GeoDataNetworkLink::setLink(
const GeoDataLink &link)