KPublicTransport::TripRequest
#include <triprequest.h>
Properties | |
QStringList | backendIds |
bool | downloadAssets |
KPublicTransport::JourneySection | journeySection |
Public Member Functions | |
TripRequest (const JourneySection &journeySection) | |
bool | isValid () const |
Detailed Description
Request for a single trip.
That is, one specific run along a route. This is usually based on a JourneySection from a preceeding journey query.
- Since
- 25.04
Definition at line 28 of file triprequest.h.
Property Documentation
◆ backendIds
|
readwrite |
Identifiers of backends that should be queried.
Settings this is only needed when you want explicit control over this, leaving this empty picks suitable backends automatically.
Definition at line 37 of file triprequest.h.
◆ downloadAssets
|
readwrite |
Download graphic assets such as line logos for the data requested here.
Default: false
Definition at line 42 of file triprequest.h.
◆ journeySection
|
readwrite |
A JourneySection for which the full trip is requested.
Definition at line 32 of file triprequest.h.
Constructor & Destructor Documentation
◆ TripRequest()
TripRequest::TripRequest | ( | const JourneySection & | journeySection | ) |
Create a TripRequest for journeySection
.
Definition at line 33 of file triprequest.cpp.
Member Function Documentation
◆ isValid()
|
nodiscard |
Returns true
if this is a valid request, that is it has enough parameters set to perform a query.
Definition at line 39 of file triprequest.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:52:19 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.