KPublicTransport
vehiclelayoutquerymodel.cpp
57 && !m_stopover.vehicleLayout().hasPlatformPositions() && m_stopover.vehicleLayout().hasPlatformSectionNames()) {
95void VehicleLayoutQueryModelPrivate::interpolatePlatformPositionsFromSectionName(Iter begin, Iter end)
100 while (rangeEnd != end && (*rangeBegin).platformSectionName() == (*rangeEnd).platformSectionName()) {
104 const auto platformIt = std::find_if(m_stopover.platformLayout().sections().begin(), m_stopover.platformLayout().sections().end(), [&rangeBegin](const auto &p) {
133 auto pos = (*std::prev(rangeEnd)).platformPositionEnd() - std::distance(begin, rangeEnd) * minLength;
Common base class for query models, do not use directly.
Definition abstractquerymodel.h:25
Information about the layout of a station platform.
Definition platform.h:45
bool isEmpty() const
Returns true if this object contains no information beyond default values.
Definition platform.cpp:66
void setSections(std::vector< PlatformSection > &§ions)
Sets the platform sections.
Definition platform.cpp:82
void finished()
Emitted whenever the corresponding search has been completed.
Information about an arrival and/or departure of a vehicle at a stop area.
Definition stopover.h:26
KPublicTransport::Vehicle vehicleLayout
Vehicle coach layout information at this stopover.
Definition stopover.h:77
Model for retrieving vehicle and platform layout query results.
Definition vehiclelayoutquerymodel.h:24
KPublicTransport::Vehicle vehicle
The vehicle for which this model shows its sections.
Definition vehiclelayoutquerymodel.h:29
KPublicTransport::Stopover stopover
The departure this vehicle layout belongs to.
Definition vehiclelayoutquerymodel.h:33
KPublicTransport::Platform platform
The platform this vehicle is departing from.
Definition vehiclelayoutquerymodel.h:31
Describes a query for vehicle layout information.
Definition vehiclelayoutrequest.h:25
bool isValid() const
Returns true if this is a valid request, that is it has enough parameters set to perform a query.
Definition vehiclelayoutrequest.cpp:40
KPublicTransport::Stopover stopover
The stopover vehicle and platform layout information are requested for.
Definition vehiclelayoutrequest.h:29
bool hasPlatformPositions() const
Checks whether all vehicle sections have platform positions set.
Definition vehicle.cpp:294
bool hasPlatformSectionNames() const
Check whether all vehicle sections have platform section names set.
Definition vehicle.cpp:299
bool isEmpty() const
Returns true if this object contains no information beyond the default values.
Definition vehicle.cpp:176
std::vector< VehicleSection > && takeSections()
Moves the vehicle sections out of this object.
Definition vehicle.cpp:186
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
virtual QHash< int, QByteArray > roleNames() const const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
bool isValid() const const
int row() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
QVariant fromValue(T &&value)
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.