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(
QPointF startPoint READ startPoint STORED false)
37 Q_PROPERTY(
QPointF endPoint READ endPoint STORED false)
40 Q_PROPERTY(
int distance READ distance STORED false)
42 Q_PROPERTY(
int direction READ direction STORED false)
45 KPUBLICTRANSPORT_PROPERTY(
int, startFloorLevel, setStartFloorLevel)
47 Q_PROPERTY(
bool hasStartFloorLevel READ hasStartFloorLevel STORED false)
52 KPUBLICTRANSPORT_PROPERTY(
int, floorLevelChange, setFloorLevelChange)
64 KPUBLICTRANSPORT_PROPERTY(
Maneuver, maneuver, setManeuver)
69 Q_PROPERTY(
QString iconName READ iconName STORED false)
73 [[nodiscard]]
int distance() const;
77 [[nodiscard]]
int direction() const;
79 [[nodiscard]]
bool hasStartFloorLevel() const;
82 [[nodiscard]]
QPointF startPoint() const;
84 [[nodiscard]]
QPointF endPoint() const;
86 [[nodiscard]]
QString iconName() const;
112class KPUBLICTRANSPORT_EXPORT
Path
114 KPUBLICTRANSPORT_GADGET(
Path)
119 Q_PROPERTY(
int sectionCount READ sectionCount STORED false)
122 Q_PROPERTY(
int distance READ distance STORED false)
125 Q_PROPERTY(
QPointF startPoint READ startPoint STORED false)
127 Q_PROPERTY(
QPointF endPoint READ endPoint STORED false)
131 [[nodiscard]]
bool isEmpty() const;
134 [[nodiscard]] const std::vector<
PathSection>& sections() const;
136 [[nodiscard]] std::vector<
PathSection>&& takeSections();
138 void setSections(std::vector<
PathSection> &§ions);
141 [[nodiscard]]
int distance() const;
144 [[nodiscard]]
QPointF startPoint() const;
146 [[nodiscard]]
QPointF endPoint() const;
154 [[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 Sat Dec 21 2024 16:59:57 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.