Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgeoroutesegment_p.h
Go to the documentation of this file.
1// Copyright (C) 2015 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 QGEOROUTESEGMENT_P_H
5#define QGEOROUTESEGMENT_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 <QtLocation/qgeoroutesegment.h>
21
22
23#include <QSharedData>
24#include <QList>
25#include <QString>
26
28
29class QGeoCoordinate;
30
31class Q_LOCATION_EXPORT QGeoRouteSegmentPrivate : public QSharedData
32{
33public:
36
37 bool valid() const;
38 void setValid(bool valid);
39
40 bool isLegLastSegment() const;
41 void setLegLastSegment(bool lastSegment);
42
43 int travelTime() const;
44 void setTravelTime(int travelTime);
45
46 qreal distance() const;
47 void setDistance(qreal distance);
48
49 QList<QGeoCoordinate> path() const;
50 void setPath(const QList<QGeoCoordinate> &path);
51
52 QGeoManeuver maneuver() const;
53 void setManeuver(const QGeoManeuver &maneuver);
54
55 QExplicitlySharedDataPointer<QGeoRouteSegmentPrivate> nextRouteSegment() const;
56 void setNextRouteSegment(const QExplicitlySharedDataPointer<QGeoRouteSegmentPrivate> &next);
57
58 QExplicitlySharedDataPointer<QGeoRouteSegmentPrivate> m_nextSegment;
59 bool m_valid = false;
60 bool m_legLastSegment = false;
61 int m_travelTime = 0;
62 qreal m_distance = 0.0;
63 QList<QGeoCoordinate> m_path;
65
66 friend bool operator==(const QGeoRouteSegmentPrivate &lhs, const QGeoRouteSegmentPrivate &rhs);
67};
68
70
71#endif
\inmodule QtPositioning
\inmodule QtLocation
QList< QGeoCoordinate > m_path
QExplicitlySharedDataPointer< QGeoRouteSegmentPrivate > m_nextSegment
\inmodule QtLocation
\inmodule QtCore
Definition qshareddata.h:19
short next
Definition keywords.cpp:445
Combined button and popup list for selecting options.
static QDBusError::ErrorType get(const char *name)
GLsizei GLsizei GLfloat distance
GLuint segment
GLsizei const GLchar *const * path
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Definition qrandom.cpp:1220
double qreal
Definition qtypes.h:187