KTextAddons

languagetoolgrammarerror.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "common/grammarerror.h"
10#include "textgrammarcheckprivate_export.h"
11#include <QStringList>
12namespace TextGrammarCheck
13{
14class TEXTGRAMMARCHECK_TESTS_EXPORT LanguageToolGrammarError : public GrammarError
15{
16public:
17 LanguageToolGrammarError();
18 ~LanguageToolGrammarError() override;
19 void parse(const QJsonObject &obj, int blockindex) override;
20 void setTesting(bool b);
21
22private:
23 [[nodiscard]] static QStringList parseSuggestion(const QJsonObject &obj);
24 bool mTesting = false;
25};
26}
27Q_DECLARE_METATYPE(TextGrammarCheck::LanguageToolGrammarError)
28Q_DECLARE_TYPEINFO(TextGrammarCheck::LanguageToolGrammarError, Q_MOVABLE_TYPE);
FeedPtr parse(const DocumentSource &src, const QString &formatHint=QString())
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.