KOSMIndoorMap
mapcssloader.cpp
37MapCSSLoader::MapCSSLoader(const QUrl &style, const NetworkAccessManagerFactory &nam, QObject *parent)
92 if (qobject_cast<QGuiApplication*>(QGuiApplication::instance()) && QGuiApplication::palette().base().color().value() < 128) {
144 return QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + "/org.kde.osm/mapcss/"_L1;
157 return cacheBasePath() + QString::fromLatin1(QCryptographicHash::hash(url.toString().toUtf8(), QCryptographicHash::Sha1).toHex());
static QString toLocalFile(const QUrl &url)
Translate local or remote URL to locally loadable (cache) file.
Definition mapcssloader.cpp:147
bool hasError() const
Check whether loading or parsing failed in some way.
Definition mapcssloader.cpp:66
MapCSSLoader(const QUrl &style, const NetworkAccessManagerFactory &nam, QObject *parent=nullptr)
Create MapCSS loading/parsing job for style.
Definition mapcssloader.cpp:37
static QUrl resolve(const QString &style, const QUrl &baseUrl={})
Resolve style to an absolute URL to load.
Definition mapcssloader.cpp:89
OSM-based multi-floor indoor maps for buildings.
Definition locationqueryoverlayproxymodel.h:20
std::function< QNetworkAccessManager *()> NetworkAccessManagerFactory
Network access manager factory.
Definition networkaccessmanagerfactory.h:18
QByteArray toHex(char separator) const const
QCoreApplication * instance()
QByteArray hash(QByteArrayView data, Algorithm method)
QDateTime addDays(qint64 ndays) const const
QDateTime currentDateTimeUtc()
Files
bool mkpath(const QString &dirPath) const const
bool hasNext() const const
bool exists() const const
bool remove()
QString absoluteFilePath() const const
bool isAbsolute() const const
QPalette palette()
WriteOnly
NoError
void finished()
Http2AllowedAttribute
UserAgentHeader
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T qobject_cast(QObject *object)
GenericDataLocation
QStringList standardLocations(StandardLocation type)
QString writableLocation(StandardLocation type)
bool endsWith(QChar c, Qt::CaseSensitivity cs) const const
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
QString mid(qsizetype position, qsizetype n) const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QByteArray toUtf8() const const
QUrl fromLocalFile(const QString &localFile)
bool isEmpty() const const
bool isLocalFile() const const
bool isValid() const const
QString path(ComponentFormattingOptions options) const const
QUrl resolved(const QUrl &relative) const const
QString scheme() const const
void setHost(const QString &host, ParsingMode mode)
void setPath(const QString &path, ParsingMode mode)
void setScheme(const QString &scheme)
QString toLocalFile() const const
QString toString(FormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:55 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:17:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.