6#include "GeoDataNetworkLinkControl.h"
7#include "GeoDataNetworkLinkControl_p.h"
9#include "GeoDataAbstractView.h"
14GeoDataNetworkLinkControl::GeoDataNetworkLinkControl()
15 : GeoDataContainer(new GeoDataNetworkLinkControlPrivate)
19GeoDataNetworkLinkControl::GeoDataNetworkLinkControl(
const GeoDataNetworkLinkControl &other)
20 : GeoDataContainer(other, new GeoDataNetworkLinkControlPrivate(*other.d_func()))
24GeoDataNetworkLinkControl &GeoDataNetworkLinkControl::operator=(
const GeoDataNetworkLinkControl &other)
27 Q_D(GeoDataNetworkLinkControl);
34bool GeoDataNetworkLinkControl::operator==(
const GeoDataNetworkLinkControl &other)
const
36 Q_D(
const GeoDataNetworkLinkControl);
37 const GeoDataNetworkLinkControlPrivate *
const other_d = other.d_func();
39 if (!GeoDataContainer::equals(other) || d->m_minRefreshPeriod != other_d->m_minRefreshPeriod || d->m_maxSessionLength != other_d->m_maxSessionLength
40 || d->m_cookie != other_d->m_cookie || d->m_message != other_d->m_message || d->m_linkName != other_d->m_linkName
41 || d->m_linkDescription != other_d->m_linkDescription || d->m_linkSnippet != other_d->m_linkSnippet || d->m_maxLines != other_d->m_maxLines
42 || d->m_expires != other_d->m_expires || d->m_update != other_d->m_update) {
46 if (!d->m_abstractView && !other_d->m_abstractView) {
49 if ((!d->m_abstractView && other_d->m_abstractView) || (d->m_abstractView && !other_d->m_abstractView)) {
53 if (*d->m_abstractView != *other_d->m_abstractView) {
60bool GeoDataNetworkLinkControl::operator!=(
const GeoDataNetworkLinkControl &other)
const
65GeoDataNetworkLinkControl::~GeoDataNetworkLinkControl() =
default;
67GeoDataFeature *GeoDataNetworkLinkControl::clone()
const
69 return new GeoDataNetworkLinkControl(*
this);
72const char *GeoDataNetworkLinkControl::nodeType()
const
74 Q_D(
const GeoDataNetworkLinkControl);
75 return GeoDataTypes::GeoDataNetworkLinkControlType;
78qreal GeoDataNetworkLinkControl::minRefreshPeriod()
const
80 Q_D(
const GeoDataNetworkLinkControl);
81 return d->m_minRefreshPeriod;
84void GeoDataNetworkLinkControl::setMinRefreshPeriod(qreal minRefreshPeriod)
86 Q_D(GeoDataNetworkLinkControl);
87 d->m_minRefreshPeriod = minRefreshPeriod;
90qreal GeoDataNetworkLinkControl::maxSessionLength()
const
92 Q_D(
const GeoDataNetworkLinkControl);
93 return d->m_maxSessionLength;
96void GeoDataNetworkLinkControl::setMaxSessionLength(qreal maxSessionLength)
98 Q_D(GeoDataNetworkLinkControl);
99 d->m_maxSessionLength = maxSessionLength;
102QString GeoDataNetworkLinkControl::cookie()
const
104 Q_D(
const GeoDataNetworkLinkControl);
108void GeoDataNetworkLinkControl::setCookie(
const QString &cookie)
110 Q_D(GeoDataNetworkLinkControl);
111 d->m_cookie = cookie;
114QString GeoDataNetworkLinkControl::message()
const
116 Q_D(
const GeoDataNetworkLinkControl);
120void GeoDataNetworkLinkControl::setMessage(
const QString &message)
122 Q_D(GeoDataNetworkLinkControl);
123 d->m_message = message;
126QString GeoDataNetworkLinkControl::linkName()
const
128 Q_D(
const GeoDataNetworkLinkControl);
129 return d->m_linkName;
132void GeoDataNetworkLinkControl::setLinkName(
const QString &linkName)
134 Q_D(GeoDataNetworkLinkControl);
135 d->m_linkName = linkName;
138QString GeoDataNetworkLinkControl::linkDescription()
const
140 Q_D(
const GeoDataNetworkLinkControl);
141 return d->m_linkDescription;
144void GeoDataNetworkLinkControl::setLinkDescription(
const QString &linkDescription)
146 Q_D(GeoDataNetworkLinkControl);
147 d->m_linkDescription = linkDescription;
150QString GeoDataNetworkLinkControl::linkSnippet()
const
152 Q_D(
const GeoDataNetworkLinkControl);
153 return d->m_linkSnippet;
156void GeoDataNetworkLinkControl::setLinkSnippet(
const QString &linkSnippet)
158 Q_D(GeoDataNetworkLinkControl);
159 d->m_linkSnippet = linkSnippet;
162int GeoDataNetworkLinkControl::maxLines()
const
164 Q_D(
const GeoDataNetworkLinkControl);
165 return d->m_maxLines;
168void GeoDataNetworkLinkControl::setMaxLines(
int maxLines)
170 Q_D(GeoDataNetworkLinkControl);
171 d->m_maxLines = maxLines;
174QDateTime GeoDataNetworkLinkControl::expires()
const
176 Q_D(
const GeoDataNetworkLinkControl);
180void GeoDataNetworkLinkControl::setExpires(
const QDateTime &expires)
182 Q_D(GeoDataNetworkLinkControl);
183 d->m_expires = expires;
186GeoDataUpdate &GeoDataNetworkLinkControl::update()
188 Q_D(GeoDataNetworkLinkControl);
192const GeoDataUpdate &GeoDataNetworkLinkControl::update()
const
194 Q_D(
const GeoDataNetworkLinkControl);
198void GeoDataNetworkLinkControl::setUpdate(
const GeoDataUpdate &update)
200 Q_D(GeoDataNetworkLinkControl);
204GeoDataAbstractView *GeoDataNetworkLinkControl::abstractView()
const
206 Q_D(
const GeoDataNetworkLinkControl);
207 return d->m_abstractView;
210void GeoDataNetworkLinkControl::setAbstractView(GeoDataAbstractView *abstractView)
212 Q_D(GeoDataNetworkLinkControl);
213 d->m_abstractView = abstractView;
214 d->m_abstractView->setParent(
this);
void update(Part *part, const QByteArray &data, qint64 dataSize)
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
Binds a QML item to a specific geodetic location in screen coordinates.