KPublicTransport
coveragearea.cpp
65KPUBLICTRANSPORT_MAKE_PROPERTY(CoverageArea, QStringList, vdvOrganizationIds, setVdvOrganizationIds)
106 return std::binary_search(d->regions.begin(), d->regions.end(), loc.country(), [](const auto &lhs, const auto &rhs) {
Describes the area a specific KPublicTransport::Backend can provide information for.
Definition coveragearea.h:22
bool isGlobal() const
Returns true if this area covers the entire world.
Definition coveragearea.cpp:72
bool hasNationWideCoverage(const QString &country) const
Checks whether this includes the entire country country.
Definition coveragearea.cpp:115
bool coversLocation(const Location &loc) const
Checks whether loc is covered by this area.
Definition coveragearea.cpp:86
static CoverageArea fromJson(const QJsonObject &obj)
Read a single coverage area information from a JSON object in Transport API Repository format.
Definition coveragearea.cpp:120
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
ReadOnly
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
QJsonValue value(QLatin1StringView key) const const
QString toString() const const
iterator begin()
iterator end()
bool isEmpty() const const
bool isEmpty() const const
qsizetype size() const const
WindingFill
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.