KTextAddons
9#include "textgrammarcheck_export.h"
12namespace TextGrammarCheck
14class TEXTGRAMMARCHECK_EXPORT GrammalecteResultJob :
public QObject
18 explicit GrammalecteResultJob(QObject *parent =
nullptr);
19 ~GrammalecteResultJob()
override;
21 enum class ErrorType : uint8_t {
24 PythonPathMissing = 2,
25 GrammalecteMissing = 3,
26 PythonPathNotExist = 4,
27 GrammarlectCliNotExist = 5,
33 [[nodiscard]]
bool canStart();
35 [[nodiscard]] QString text()
const;
36 void setText(
const QString &text);
38 [[nodiscard]] QString pythonPath()
const;
39 void setPythonPath(
const QString &pythonPath);
41 [[nodiscard]] QString grammarlecteCliPath()
const;
42 void setGrammarlecteCliPath(
const QString &grammarlecteCliPath);
44 [[nodiscard]] QStringList arguments()
const;
45 void setArguments(
const QStringList &arguments);
48 void finished(
const QString &result);
49 void error(GrammalecteResultJob::ErrorType type);
53 TEXTGRAMMARCHECK_NO_EXPORT
void receivedStdErr();
54 TEXTGRAMMARCHECK_NO_EXPORT
void receivedError();
55 TEXTGRAMMARCHECK_NO_EXPORT
void receivedStandardOutput();
56 QStringList mArguments;
60 QString mGrammarlecteCliPath;
62 GrammalecteResultJob::ErrorType mErrorType = ErrorType::NoError;
63 QProcess *mProcess =
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.