9#include "textgrammarcheck_export.h"
14namespace TextGrammarCheck
16class TEXTGRAMMARCHECK_EXPORT LanguageToolManager :
public QObject
20 explicit LanguageToolManager(
QObject *parent =
nullptr);
21 ~LanguageToolManager()
override;
22 static LanguageToolManager *self();
26 [[nodiscard]]
QString languageToolPath()
const;
27 void setLanguageToolPath(
const QString &path);
32 [[nodiscard]]
QString language()
const;
33 void setLanguage(
const QString &language);
35 [[nodiscard]]
bool useLocalInstance()
const;
36 void setUseLocalInstance(
bool useLocalInstance);
38 [[nodiscard]]
QString languageToolCheckPath()
const;
40 [[nodiscard]]
QString languageToolLanguagesPath()
const;
42 [[nodiscard]]
static QString convertToLanguagePath(
const QString &path);
44 [[nodiscard]]
QColor grammarColorForError(
const QString &error);
46 [[nodiscard]]
bool allowToGetListOfLanguages()
const;
49 Q_DISABLE_COPY(LanguageToolManager)
54 bool mUseLocalInstance =
false;
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.