KTextAddons
9#include "textgrammarcheck_export.h"
10#include <QNetworkRequest>
14namespace TextGrammarCheck
16class TEXTGRAMMARCHECK_EXPORT LanguageToolGetListOfLanguageJob :
public QObject
20 explicit LanguageToolGetListOfLanguageJob(QObject *parent =
nullptr);
21 ~LanguageToolGetListOfLanguageJob()
override;
23 [[nodiscard]]
bool canStart()
const;
26 [[nodiscard]] QString listOfLanguagePath()
const;
27 void setListOfLanguagePath(
const QString &listOfLanguagePath);
29 QNetworkAccessManager *networkAccessManager()
const;
30 void setNetworkAccessManager(QNetworkAccessManager *networkAccessManager);
32 [[nodiscard]] QString url()
const;
33 void setUrl(
const QString &url);
36 void finished(
const QString &result);
37 void error(
const QString &errorStr);
40 Q_DISABLE_COPY(LanguageToolGetListOfLanguageJob)
41 TEXTGRAMMARCHECK_NO_EXPORT
void addRequestAttribute(QNetworkRequest &request)
const;
42 TEXTGRAMMARCHECK_NO_EXPORT
void slotCheckListOfLanguagesFinished();
43 TEXTGRAMMARCHECK_NO_EXPORT
void slotFinish(QNetworkReply *reply);
45 QString mListOfLanguagePath;
46 QNetworkAccessManager *mNetworkAccessManager =
nullptr;
Q_SCRIPTABLE Q_NOREPLY void start()
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:24 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.