#include <journey.h>
A journey plan.
Definition at line 271 of file journey.h.
◆ arrivalDelay
int KPublicTransport::Journey::arrivalDelay |
|
read |
Difference to schedule in minutes.
Definition at line 296 of file journey.h.
◆ co2Emission
int KPublicTransport::Journey::co2Emission |
|
read |
Total CO2 emissions for the entire journey in gram.
That is, the sum of the emissions of all sections.
Definition at line 312 of file journey.h.
◆ departureDelay
int KPublicTransport::Journey::departureDelay |
|
read |
Difference to schedule in minutes.
Definition at line 285 of file journey.h.
◆ disruptionEffect
Worst disruption effect of any of the journey sections.
Definition at line 303 of file journey.h.
◆ distance
int KPublicTransport::Journey::distance |
|
read |
Total travelled distance of the entire journey in meter.
That is, the sum of the distances of all sections.
Definition at line 308 of file journey.h.
◆ duration
int KPublicTransport::Journey::duration |
|
read |
Duration of the entire journey in seconds.
Definition at line 299 of file journey.h.
◆ expectedArrivalTime
QDateTime KPublicTransport::Journey::expectedArrivalTime |
|
read |
Actual arrival time, if available.
Set to invalid to indicate real-time data is not available.
Definition at line 294 of file journey.h.
◆ expectedDepartureTime
QDateTime KPublicTransport::Journey::expectedDepartureTime |
|
read |
Actual departure time, if available.
Set to invalid to indicate real-time data is not available.
Definition at line 283 of file journey.h.
◆ hasExpectedArrivalTime
bool KPublicTransport::Journey::hasExpectedArrivalTime |
|
read |
true
if this has real-time data.
Definition at line 290 of file journey.h.
◆ hasExpectedDepartureTime
bool KPublicTransport::Journey::hasExpectedDepartureTime |
|
read |
true
if this has real-time data.
Definition at line 279 of file journey.h.
◆ numberOfChanges
int KPublicTransport::Journey::numberOfChanges |
|
read |
Number of changes on this journey.
Definition at line 301 of file journey.h.
◆ scheduledArrivalTime
QDateTime KPublicTransport::Journey::scheduledArrivalTime |
|
read |
Arrival time of the journey, according to schedule.
Definition at line 288 of file journey.h.
◆ scheduledDepartureTime
QDateTime KPublicTransport::Journey::scheduledDepartureTime |
|
read |
Departure time of the journey, according to schedule.
Definition at line 277 of file journey.h.
◆ sections
QVariantList KPublicTransport::Journey::sections |
|
read |
◆ applyMetaData()
void Journey::applyMetaData |
( |
bool | download | ) |
|
Augment line meta data.
- Parameters
-
download | if set to true , trigger the download of locally missing assets. |
Definition at line 789 of file journey.cpp.
◆ arrivalDelay()
int Journey::arrivalDelay |
( |
| ) |
const |
|
nodiscard |
◆ co2Emission()
int Journey::co2Emission |
( |
| ) |
const |
|
nodiscard |
◆ departureDelay()
int Journey::departureDelay |
( |
| ) |
const |
|
nodiscard |
◆ disruptionEffect()
◆ distance()
int Journey::distance |
( |
| ) |
const |
|
nodiscard |
◆ duration()
int Journey::duration |
( |
| ) |
const |
|
nodiscard |
◆ expectedArrivalTime()
QDateTime Journey::expectedArrivalTime |
( |
| ) |
const |
|
nodiscard |
◆ expectedDepartureTime()
QDateTime Journey::expectedDepartureTime |
( |
| ) |
const |
|
nodiscard |
◆ fromJson() [1/2]
Deserialize a list of journey from JSON.
Definition at line 884 of file journey.cpp.
◆ fromJson() [2/2]
Deserialize an object from JSON.
Definition at line 877 of file journey.cpp.
◆ hasExpectedArrivalTime()
bool Journey::hasExpectedArrivalTime |
( |
| ) |
const |
|
nodiscard |
◆ hasExpectedDepartureTime()
bool Journey::hasExpectedDepartureTime |
( |
| ) |
const |
|
nodiscard |
◆ isSame()
Checks if two instances refer to the same journey (which does not necessarily mean they are exactly equal).
Definition at line 803 of file journey.cpp.
◆ merge()
Merge two instances.
This assumes isSame(lhs, rhs) and tries to preserve the most detailed information.
Definition at line 835 of file journey.cpp.
◆ numberOfChanges()
int Journey::numberOfChanges |
( |
| ) |
const |
|
nodiscard |
◆ scheduledArrivalTime()
QDateTime Journey::scheduledArrivalTime |
( |
| ) |
const |
|
nodiscard |
◆ scheduledDepartureTime()
QDateTime Journey::scheduledDepartureTime |
( |
| ) |
const |
|
nodiscard |
◆ sections()
◆ setSections()
void Journey::setSections |
( |
std::vector< JourneySection > && | sections | ) |
|
Sets the journey sections.
Definition at line 700 of file journey.cpp.
◆ takeSections()
Moves the journey sections out of this object.
Definition at line 694 of file journey.cpp.
◆ toJson() [1/2]
Serializes one journey object to JSON.
Definition at line 865 of file journey.cpp.
◆ toJson() [2/2]
Serializes a vector of journey objects to JSON.
Definition at line 872 of file journey.cpp.
The documentation for this class was generated from the following files:
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.