KTextAddons

grammalectegrammarerror.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 "textgrammarcheckprivate_export.h"
10#include <TextGrammarCheck/GrammarError>
11namespace TextGrammarCheck
12{
13class TEXTGRAMMARCHECK_TESTS_EXPORT GrammalecteGrammarError : public GrammarError
14{
15public:
16 GrammalecteGrammarError();
17 ~GrammalecteGrammarError() override;
18 void parse(const QJsonObject &obj, int blockindex) override;
19
20private:
21 [[nodiscard]] static QStringList parseSuggestion(const QJsonObject &obj);
22 [[nodiscard]] static QColor parseColor(const QJsonObject &obj);
23};
24}
25Q_DECLARE_METATYPE(TextGrammarCheck::GrammalecteGrammarError)
26Q_DECLARE_TYPEINFO(TextGrammarCheck::GrammalecteGrammarError, 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 Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.