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
4#ifndef QGEOMANEUVER_P_H
5#define QGEOMANEUVER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtLocation/private/qlocationglobal_p.h>
19#include <QtLocation/qgeomaneuver.h>
20#include <QtPositioning/qgeocoordinate.h>
21
22#include <QSharedData>
23#include <QString>
24
25QT_BEGIN_NAMESPACE
26
27class QGeoManeuverPrivate : public QSharedData
28{
29public:
30 bool equals(const QGeoManeuverPrivate &other) const;
31
32 bool valid() const;
33 void setValid(bool valid);
34
35 QString id() const;
36 void setId(const QString &id);
37
38 QGeoCoordinate position() const;
39 void setPosition(const QGeoCoordinate &position);
40
41 QString text() const;
42 void setText(const QString &text);
43
44 QGeoManeuver::InstructionDirection direction() const;
45 void setDirection(QGeoManeuver::InstructionDirection direction);
46
47 int timeToNextInstruction() const;
48 void setTimeToNextInstruction(int timeToNextInstruction);
49
50 qreal distanceToNextInstruction() const;
51 void setDistanceToNextInstruction(qreal distanceToNextInstruction);
52
53 QGeoCoordinate waypoint() const;
54 void setWaypoint(const QGeoCoordinate &waypoint);
55
56 QVariantMap extendedAttributes() const;
57 void setExtendedAttributes(const QVariantMap &extendedAttributes);
58
59 QString m_id;
60 QGeoCoordinate m_position;
61 QString m_text;
62 QGeoCoordinate m_waypoint;
63 QVariantMap m_extendedAttributes;
64 qreal m_distanceToNextInstruction = 0.0;
65 QGeoManeuver::InstructionDirection m_direction = QGeoManeuver::NoDirection;
66 int m_timeToNextInstruction = 0;
67 bool m_valid = false;
68};
69
70QT_END_NAMESPACE
71
72#endif
\inmodule QtLocation