KPublicTransport
assetrepository.cpp
46void AssetRepository::setNetworkAccessManagerProvider(std::function<QNetworkAccessManager*()> namProvider)
53 return QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QLatin1String("/org.kde.kpublictransport/assets/");
71 if (!url.isValid() || url.scheme() != QLatin1String("https") || url.fileName().isEmpty() || !m_namProvider || !m_namProvider()) {
75 if (QFileInfo::exists(cachePath() + url.fileName())) { // already downloaded, or persistent error
static Attribution fromJson(const QJsonObject &obj)
Deserialize an Attribution object from JSON.
Definition attribution.cpp:48
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
bool mkpath(const QString &dirPath) const const
bool exists() const const
WriteOnly
QJsonArray array() const const
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
NoError
void finished()
GenericCacheLocation
QString writableLocation(StandardLocation type)
bool isEmpty() const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QString fileName(ComponentFormattingOptions options) const const
QUrl fromLocalFile(const QString &localFile)
bool isValid() const const
QString scheme() const const
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.