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);
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();
62 GrammalecteResultJob::ErrorType mErrorType = ErrorType::NoError;
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-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:03 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.