KPublicTransport
journeyrequest.cpp
35 JourneySection::Modes modes = JourneySection::PublicTransport | JourneySection::RentedVehicle | JourneySection::Walking;
51KPUBLICTRANSPORT_MAKE_PROPERTY(JourneyRequest, JourneyRequest::DateTimeMode, dateTimeMode, setDateTimeMode)
55KPUBLICTRANSPORT_MAKE_PROPERTY(JourneyRequest, bool, includeIntermediateStops, setIncludeIntermediateStops)
138 obj.insert("individualTransportModes"_L1, IndividualTransport::toJson(req.individualTransportModes()));
243 std::transform(lineModes.begin(), lineModes.end(), std::back_inserter(l), [](const auto &mode) { return static_cast<Line::Mode>(mode.toInt()); });
310 d->accessModes.erase(std::remove_if(d->accessModes.begin(), d->accessModes.end(), [](const auto &it) {
314 d->egressModes.erase(std::remove_if(d->egressModes.begin(), d->egressModes.end(), [](const auto &it) {
326 d->egressModes.erase(std::remove_if(d->egressModes.begin(), d->egressModes.end(), [](const auto &it) {
static std::vector< IndividualTransport > fromVariant(const QVariantList &v)
Definition individualtransport.cpp:87
static QJsonObject toJson(const IndividualTransport &it)
Serializes one object to JSON.
Definition individualtransport.cpp:67
void setIndividualTransportModes(std::vector< IndividualTransport > &&modes)
Sets individual transport modes considered for direct journeys.
Definition journeyrequest.cpp:252
void setArrivalTime(const QDateTime &dt)
Sets the desired arrival time.
Definition journeyrequest.cpp:91
void setDepartureTime(const QDateTime &dt)
Set the desired departure time.
Definition journeyrequest.cpp:84
bool requiresBikeTransport() const
Returns true if the specified access/egress modes require bike transportation on public transport.
Definition journeyrequest.cpp:220
void setAccessModes(std::vector< IndividualTransport > &&accessModes)
Sets the requested access modes.
Definition journeyrequest.cpp:174
QStringList backendIds() const
Identifiers of the backends that should be queried.
Definition journeyrequest.cpp:142
void setEgressModes(std::vector< IndividualTransport > &&egressModes)
Sets the requested egress modes.
Definition journeyrequest.cpp:196
bool isValid() const
Returns true if this is a valid request, that is, it has enough parameters set to perform a query.
Definition journeyrequest.cpp:65
QString cacheKey() const
Unique string representation used for caching results.
Definition journeyrequest.cpp:269
KPublicTransport::Location from
The starting point of the journey search.
Definition journeyrequest.h:41
void setBackendIds(const QStringList &backendIds)
Set identifiers of backends that should be queried.
Definition journeyrequest.cpp:147
void setLineModes(std::vector< Line::Mode > &&modes)
Sets the requested line modes.
Definition journeyrequest.cpp:225
QVariantList individualTransportModes
Individual transport modes for direct connections.
Definition journeyrequest.h:79
KPublicTransport::JourneySection::Modes modes
Modes of transportation that should be considered for this query.
Definition journeyrequest.h:51
@ RentedVehicle
free floating or dock-based rental bike service, electric scooters, car sharing services,...
Definition journey.h:45
static QJsonObject toJson(const Location &loc)
Serializes one Location object to JSON.
Definition location.cpp:494
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
QByteArray number(double n, char format, int precision)
QByteArray toHex(char separator) const const
bool addData(QIODevice *device)
QByteArray result() const const
QDateTime currentDateTime()
QMetaEnum fromType()
QString fromUtf8(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.