22 QML_VALUE_TYPE(routeManeuver)
24 Q_ENUMS(InstructionDirection)
26 Q_PROPERTY(
bool valid READ isValid CONSTANT)
27 Q_PROPERTY(QGeoCoordinate position READ position CONSTANT)
28 Q_PROPERTY(QString instructionText READ instructionText CONSTANT)
29 Q_PROPERTY(InstructionDirection direction READ direction CONSTANT)
30 Q_PROPERTY(
int timeToNextInstruction READ timeToNextInstruction CONSTANT)
31 Q_PROPERTY(qreal distanceToNextInstruction READ distanceToNextInstruction CONSTANT)
32 Q_PROPERTY(QGeoCoordinate waypoint READ waypoint CONSTANT)
33 Q_PROPERTY(QVariantMap extendedAttributes READ extendedAttributes CONSTANT)
36 enum InstructionDirection {
52 QGeoManeuver(
const QGeoManeuver &other)
noexcept;
53 QGeoManeuver(QGeoManeuver &&other)
noexcept =
default;
56 QGeoManeuver &operator= (
const QGeoManeuver &other);
57 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QGeoManeuver)
59 void swap(QGeoManeuver &other)
noexcept { d_ptr.swap(other.d_ptr); }
61 friend inline bool operator==(
const QGeoManeuver &lhs,
const QGeoManeuver &rhs)
noexcept
62 {
return lhs.isEqual(rhs); }
63 friend inline bool operator!=(
const QGeoManeuver &lhs,
const QGeoManeuver &rhs)
noexcept
64 {
return !lhs.isEqual(rhs); }
68 void setPosition(
const QGeoCoordinate &position);
69 QGeoCoordinate position()
const;
71 void setInstructionText(
const QString &instructionText);
72 QString instructionText()
const;
74 void setDirection(InstructionDirection direction);
75 InstructionDirection direction()
const;
77 void setTimeToNextInstruction(
int secs);
78 int timeToNextInstruction()
const;
80 void setDistanceToNextInstruction(qreal distance);
81 qreal distanceToNextInstruction()
const;
83 void setWaypoint(
const QGeoCoordinate &coordinate);
84 QGeoCoordinate waypoint()
const;
86 void setExtendedAttributes(
const QVariantMap &extendedAttributes);
87 QVariantMap extendedAttributes()
const;
90 QSharedDataPointer<QGeoManeuverPrivate> d_ptr;
92 bool isEqual(
const QGeoManeuver &other)
const;