7#ifndef KPUBLICTRANSPORT_PATH_H
8#define KPUBLICTRANSPORT_PATH_H
10#include "kpublictransport_export.h"
17class PathSectionPrivate;
30 KPUBLICTRANSPORT_PROPERTY(
QString, description, setDescription)
35 Q_PROPERTY(
int distance READ distance STORED false)
37 Q_PROPERTY(
int direction READ direction STORED false)
42 KPUBLICTRANSPORT_PROPERTY(
int, floorLevelChange, setFloorLevelChange)
54 KPUBLICTRANSPORT_PROPERTY(
Maneuver, maneuver, setManeuver)
59 Q_PROPERTY(
QString iconName READ iconName STORED false)
63 [[nodiscard]]
int distance() const;
67 [[nodiscard]]
int direction() const;
70 [[nodiscard]]
QPointF startPoint() const;
72 [[nodiscard]]
QPointF endPoint() const;
74 [[nodiscard]]
QString iconName() const;
100class KPUBLICTRANSPORT_EXPORT
Path
102 KPUBLICTRANSPORT_GADGET(
Path)
107 Q_PROPERTY(
int sectionCount READ sectionCount STORED false)
110 Q_PROPERTY(
int distance READ distance STORED false)
114 [[nodiscard]]
bool isEmpty() const;
117 [[nodiscard]] const std::vector<
PathSection>& sections() const;
119 [[nodiscard]] std::vector<
PathSection>&& takeSections();
121 void setSections(std::vector<
PathSection> &§ions);
124 [[nodiscard]]
int distance() const;
127 [[nodiscard]]
QPointF startPoint() const;
129 [[nodiscard]]
QPointF endPoint() const;
137 [[nodiscard]]
int sectionCount() const;
Maneuver
Maneuver associated with a path section.
@ Elevator
Take an elevator.
@ Escalator
Take an escalator.
@ Move
Move/drive with the default mode of transport for this path.
@ Stairs
Walk up or down stairs.
A path followed by any kind of location change.
Query operations and data types for accessing realtime public transport information from online servi...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:59:21 by
doxygen 1.11.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.