23 QML_VALUE_TYPE(routeManeuver)
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 {
50 Q_ENUM(InstructionDirection)
53 QGeoManeuver(
const QGeoManeuver &other)
noexcept;
54 QGeoManeuver(QGeoManeuver &&other)
noexcept =
default;
57 QGeoManeuver &operator= (
const QGeoManeuver &other);
58 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QGeoManeuver)
60 void swap(QGeoManeuver &other)
noexcept { d_ptr.swap(other.d_ptr); }
62 friend inline bool operator==(
const QGeoManeuver &lhs,
const QGeoManeuver &rhs)
noexcept
63 {
return lhs.isEqual(rhs); }
64 friend inline bool operator!=(
const QGeoManeuver &lhs,
const QGeoManeuver &rhs)
noexcept
65 {
return !lhs.isEqual(rhs); }
69 void setPosition(
const QGeoCoordinate &position);
70 QGeoCoordinate position()
const;
72 void setInstructionText(
const QString &instructionText);
73 QString instructionText()
const;
75 void setDirection(InstructionDirection direction);
76 InstructionDirection direction()
const;
78 void setTimeToNextInstruction(
int secs);
79 int timeToNextInstruction()
const;
81 void setDistanceToNextInstruction(qreal distance);
82 qreal distanceToNextInstruction()
const;
84 void setWaypoint(
const QGeoCoordinate &coordinate);
85 QGeoCoordinate waypoint()
const;
87 void setExtendedAttributes(
const QVariantMap &extendedAttributes);
88 QVariantMap extendedAttributes()
const;
91 QSharedDataPointer<QGeoManeuverPrivate> d_ptr;
93 bool isEqual(
const QGeoManeuver &other)
const;