KSyntaxHighlighting
definitiondownloader.cpp
78 Q_EMIT q->informationMessage(QObject::tr("Downloading new syntax definition for '%1'…", "@info").arg(name));
85 Q_EMIT q->informationMessage(QObject::tr("Updating syntax definition for '%1' to version %2…", "@info").arg(name, version));
161 d->downloadLocation = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/org.kde.syntax-highlighting/syntax");
172 const QString url = QLatin1String("https://www.kate-editor.org/syntax/update-") + QString::number(KSYNTAXHIGHLIGHTING_VERSION_MAJOR) + QLatin1Char('.')
175 req.setAttribute(QNetworkRequest::RedirectPolicyAttribute, QNetworkRequest::NoLessSafeRedirectPolicy);
Helper class to download definition file updates.
Definition definitiondownloader.h:47
void done()
This signal is emitted when there are no pending downloads anymore.
DefinitionDownloader(Repository *repo, QObject *parent=nullptr)
Constructor.
Definition definitiondownloader.cpp:149
void informationMessage(const QString &msg)
Prints the information about the current state of the definition files.
Q_INVOKABLE KSyntaxHighlighting::Definition definitionForName(const QString &defName) const
Returns the Definition named defName.
Definition repository.cpp:119
char * toString(const EngineQuery &query)
KCOREADDONS_EXPORT unsigned int version()
QString name(StandardAction id)
Syntax highlighting engine for Kate syntax definitions.
Definition abstracthighlighter.h:17
bool mkpath(const QString &dirPath) const const
bool exists() const const
QByteArray readAll()
WriteOnly
QNetworkReply * get(const QNetworkRequest &request)
NoError
QVariant attribute(QNetworkRequest::Attribute code) const const
NetworkError error() const const
void finished()
QUrl url() const const
RedirectionTargetAttribute
NoLessSafeRedirectPolicy
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString tr(const char *sourceText, const char *disambiguation, int n)
GenericDataLocation
QString writableLocation(StandardLocation type)
bool isEmpty() const const
QString number(double n, char format, int precision)
singleShot
QString fileName(ComponentFormattingOptions options) const const
bool isValid() const const
QUrl resolved(const QUrl &relative) const const
QUrl toUrl() const const
QStringView value(QAnyStringView namespaceUri, QAnyStringView name) const const
StartElement
QXmlStreamAttributes attributes() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:33 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 17:03:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.