KPublicTransport
stopoverquerymodel.cpp
75 auto it = std::lower_bound(m_departures.begin(), m_departures.end(), dep, [this](const auto &lhs, const auto &rhs) {
107 connect(this, &AbstractQueryModel::loadingChanged, this, &StopoverQueryModel::canQueryPrevNextChanged);
Common base class for query models, do not use directly.
Definition abstractquerymodel.h:25
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.
Model representing arrival or departure query results.
Definition stopoverquerymodel.h:27
bool canQueryNext
Whether querying for later departures is possible.
Definition stopoverquerymodel.h:34
KPublicTransport::StopoverRequest request
Specify the actual departure query.
Definition stopoverquerymodel.h:31
bool canQueryPrevious
Whether querying for earlier journey is possible.
Definition stopoverquerymodel.h:36
const std::vector< Stopover > & departures() const
The current model content.
Definition stopoverquerymodel.cpp:221
Describes an arrival or departure search.
Definition stopoverrequest.h:33
static Stopover merge(const Stopover &lhs, const Stopover &rhs)
Merge two departure instances.
Definition stopover.cpp:205
static bool isSame(const Stopover &lhs, const Stopover &rhs)
Checks if to instances refer to the same departure (which does not necessarily mean they are exactly ...
Definition stopover.cpp:175
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 Mon Nov 18 2024 12:07:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
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.