6#include "GeoDataAnimatedUpdate.h"
7#include "GeoDataAbstractView.h"
8#include "GeoDataTypes.h"
9#include "GeoDataUpdate.h"
14class GeoDataAnimatedUpdatePrivate
18 double m_delayedStart;
19 GeoDataUpdate *m_update;
20 GeoDataAnimatedUpdatePrivate();
23GeoDataAnimatedUpdatePrivate::GeoDataAnimatedUpdatePrivate()
30GeoDataAnimatedUpdate::GeoDataAnimatedUpdate()
31 : d(new GeoDataAnimatedUpdatePrivate)
35GeoDataAnimatedUpdate::GeoDataAnimatedUpdate(
const Marble::GeoDataAnimatedUpdate &other)
36 : GeoDataTourPrimitive(other)
37 , d(new GeoDataAnimatedUpdatePrivate(*other.d))
41GeoDataAnimatedUpdate &GeoDataAnimatedUpdate::operator=(
const GeoDataAnimatedUpdate &other)
43 GeoDataTourPrimitive::operator=(other);
48bool GeoDataAnimatedUpdate::operator==(
const GeoDataAnimatedUpdate &other)
const
50 if ((!d->m_update && other.d->m_update) || (d->m_update && !other.d->m_update)) {
52 }
else if (d->m_update && other.d->m_update) {
53 return d->m_duration == other.d->m_duration && *(d->m_update) == *(other.d->m_update);
55 return d->m_duration == other.d->m_duration;
58bool GeoDataAnimatedUpdate::operator!=(
const GeoDataAnimatedUpdate &other)
const
63GeoDataAnimatedUpdate::~GeoDataAnimatedUpdate()
68const char *GeoDataAnimatedUpdate::nodeType()
const
70 return GeoDataTypes::GeoDataAnimatedUpdateType;
73const GeoDataUpdate *GeoDataAnimatedUpdate::update()
const
78GeoDataUpdate *GeoDataAnimatedUpdate::update()
83void GeoDataAnimatedUpdate::setUpdate(GeoDataUpdate *update)
88 d->m_update->setParent(
this);
92double GeoDataAnimatedUpdate::duration()
const
97void GeoDataAnimatedUpdate::setDuration(
double duration)
99 d->m_duration = duration;
102double GeoDataAnimatedUpdate::delayedStart()
const
104 return d->m_delayedStart;
107void GeoDataAnimatedUpdate::setDelayedStart(
double delayedStart)
109 d->m_delayedStart = delayedStart;
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.