KPublicTransport
journeyquerymodel.cpp
75 auto it = std::lower_bound(m_journeys.begin(), m_journeys.end(), jny, JourneyUtil::firstTransportDepartureLessThan);
105 connect(this, &AbstractQueryModel::loadingChanged, this, &JourneyQueryModel::canQueryPrevNextChanged);
Common base class for query models, do not use directly.
Definition abstractquerymodel.h:25
Model representing journey query results.
Definition journeyquerymodel.h:27
void setRequest(const JourneyRequest &req)
Specify the actual journey query.
Definition journeyquerymodel.cpp:116
bool canQueryPrevious
Whether querying for earlier journey is possible.
Definition journeyquerymodel.h:36
const std::vector< Journey > & journeys() const
The current model content.
Definition journeyquerymodel.cpp:229
KPublicTransport::JourneyRequest request
Specify the requested journey.
Definition journeyquerymodel.h:31
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
static bool isSame(const Journey &lhs, const Journey &rhs)
Checks if two instances refer to the same journey (which does not necessarily mean they are exactly e...
Definition journey.cpp:733
static Journey merge(const Journey &lhs, const Journey &rhs)
Merge two instances.
Definition journey.cpp:765
void finished()
Emitted whenever the corresponding search has been completed.
void updated()
Emitted whenever new results are available, even before the search has been completed.
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
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
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 Oct 11 2024 12:12:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:12:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.