6#include "GeoDataNetworkLink.h"
8#include "GeoDataTypes.h"
9#include "GeoDataLink.h"
13class GeoDataNetworkLinkPrivate
16 bool m_refreshVisibility;
22 GeoDataNetworkLinkPrivate();
25GeoDataNetworkLinkPrivate::GeoDataNetworkLinkPrivate() :
26 m_refreshVisibility(false), m_flyToView(false)
31GeoDataNetworkLink::GeoDataNetworkLink() : d( new GeoDataNetworkLinkPrivate )
36GeoDataNetworkLink::GeoDataNetworkLink(
const Marble::GeoDataNetworkLink &other ) :
37 GeoDataFeature( other ), d( new GeoDataNetworkLinkPrivate( *other.d ) )
42GeoDataNetworkLink &GeoDataNetworkLink::operator=(
const GeoDataNetworkLink &other )
44 GeoDataFeature::operator=( other );
49bool GeoDataNetworkLink::operator==(
const GeoDataNetworkLink &other )
const
52 d->m_refreshVisibility == other.d->m_refreshVisibility &&
53 d->m_link == other.d->m_link &&
54 d->m_flyToView == other.d->m_flyToView;
57bool GeoDataNetworkLink::operator!=(
const GeoDataNetworkLink &other )
const
62GeoDataNetworkLink::~GeoDataNetworkLink()
67GeoDataFeature * GeoDataNetworkLink::clone()
const
69 return new GeoDataNetworkLink(*
this);
73const char *GeoDataNetworkLink::nodeType()
const
75 return GeoDataTypes::GeoDataNetworkLinkType;
78bool GeoDataNetworkLink::refreshVisibility()
const
80 return d->m_refreshVisibility;
83void GeoDataNetworkLink::setRefreshVisibility(
bool refreshVisibility )
85 d->m_refreshVisibility = refreshVisibility;
88bool GeoDataNetworkLink::flyToView()
const
90 return d->m_flyToView;
93void GeoDataNetworkLink::setFlyToView(
bool flyToView)
95 d->m_flyToView = flyToView;
98GeoDataLink &GeoDataNetworkLink::link()
103const GeoDataLink& GeoDataNetworkLink::link()
const
108void GeoDataNetworkLink::setLink(
const GeoDataLink &link)
KIOCORE_EXPORT CopyJob * link(const QList< QUrl > &src, const QUrl &destDir, JobFlags flags=DefaultFlags)
bool equals(const QVariant &lhs, const QVariant &rhs)
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)