Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgeomaneuver_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QGEOMANEUVER_P_H
6#define QGEOMANEUVER_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtLocation/private/qlocationglobal_p.h>
20#include <QtLocation/qgeomaneuver.h>
21#include <QtPositioning/qgeocoordinate.h>
22
23#include <QSharedData>
24#include <QString>
25
26QT_BEGIN_NAMESPACE
27
28class QGeoManeuverPrivate : public QSharedData
29{
30public:
31 bool equals(const QGeoManeuverPrivate &other) const;
32
33 bool valid() const;
34 void setValid(bool valid);
35
36 QString id() const;
37 void setId(const QString &id);
38
39 QGeoCoordinate position() const;
40 void setPosition(const QGeoCoordinate &position);
41
42 QString text() const;
43 void setText(const QString &text);
44
45 QGeoManeuver::InstructionDirection direction() const;
46 void setDirection(QGeoManeuver::InstructionDirection direction);
47
48 int timeToNextInstruction() const;
49 void setTimeToNextInstruction(int timeToNextInstruction);
50
51 qreal distanceToNextInstruction() const;
52 void setDistanceToNextInstruction(qreal distanceToNextInstruction);
53
54 QGeoCoordinate waypoint() const;
55 void setWaypoint(const QGeoCoordinate &waypoint);
56
57 QVariantMap extendedAttributes() const;
58 void setExtendedAttributes(const QVariantMap &extendedAttributes);
59
60 QString m_id;
61 QGeoCoordinate m_position;
62 QString m_text;
63 QGeoCoordinate m_waypoint;
64 QVariantMap m_extendedAttributes;
65 qreal m_distanceToNextInstruction = 0.0;
66 QGeoManeuver::InstructionDirection m_direction = QGeoManeuver::NoDirection;
67 int m_timeToNextInstruction = 0;
68 bool m_valid = false;
69};
70
71QT_END_NAMESPACE
72
73#endif
\inmodule QtLocation