7#ifndef KPUBLICTRANSPORT_LINE_H
8#define KPUBLICTRANSPORT_LINE_H
19class KPUBLICTRANSPORT_EXPORT
Line
21 KPUBLICTRANSPORT_GADGET(
Line)
50 KPUBLICTRANSPORT_PROPERTY(
QString, name, setName)
52 KPUBLICTRANSPORT_PROPERTY(
QColor, color, setColor)
54 Q_PROPERTY(
bool hasColor READ hasColor STORED false)
56 KPUBLICTRANSPORT_PROPERTY(
QColor, textColor, setTextColor)
58 Q_PROPERTY(
bool hasTextColor READ hasTextColor STORED false)
65 KPUBLICTRANSPORT_PROPERTY(
QString, modeString, setModeString)
72 Q_PROPERTY(
QString logo READ logo STORED false)
74 Q_PROPERTY(
bool hasLogo READ hasLogo STORED false)
83 Q_PROPERTY(
QString modeLogo READ modeLogo STORED false)
85 Q_PROPERTY(
bool hasModeLogo READ hasModeLogo STORED false)
88 KPUBLICTRANSPORT_PROPERTY(
QString, operatorName, setOperatorName)
93 Q_PROPERTY(
QString modeIconName READ modeIconName STORED false)
102 Q_PROPERTY(
QString iconName READ iconName STORED false)
104 [[nodiscard]]
bool hasColor() const;
105 [[nodiscard]]
bool hasTextColor() const;
106 [[nodiscard]]
QString logo() const;
107 [[nodiscard]]
bool hasLogo() const;
108 [[nodiscard]]
QString modeLogo() const;
109 [[nodiscard]]
bool hasModeLogo() const;
110 [[nodiscard]]
QString modeIconName() const;
111 [[nodiscard]]
QString iconName() const;
125 void applyMetaData(const
Location &location,
bool download);
128 [[nodiscard]] static
bool isSame(const
Line &lhs, const
Line &rhs);
133 [[nodiscard]] static
Line merge(const
Line &lhs, const
Line &rhs);
149 KPUBLICTRANSPORT_GADGET(
Route)
157 KPUBLICTRANSPORT_PROPERTY(
QString, direction, setDirection)
170 KPUBLICTRANSPORT_PROPERTY(
QString, name, setName)
174 [[nodiscard]] static
bool isSame(const
Route &lhs, const
Route &rhs);
Mode
Mode of transportation.
@ RideShare
peer-to-peer ride sharing/car pooling
@ RailShuttle
rail shuttle service within a complex, as e.g. found at or around airports
@ Shuttle
shuttle bus/coach services, e.g. to/from an airport
@ AerialLift
aerial cable cars, gondolas, etc
A route of a public transport line.
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 Mon Nov 18 2024 12:07:52 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.