Sonnet

ispellcheckerdict.h
1/*
2 SPDX-FileCopyrightText: 2019 Christoph Cullmann <cullmann@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KSPELL_ISPELLCHECKDICT_H
8#define KSPELL_ISPELLCHECKDICT_H
9
10#include "spellerplugin_p.h"
11
12#include "ispellcheckerclient.h"
13
14class ISpellCheckerDict : public Sonnet::SpellerPlugin
15{
16public:
17 explicit ISpellCheckerDict(ISpellChecker *spellChecker, const QString &language);
18 ~ISpellCheckerDict() override;
19 bool isCorrect(const QString &word) const override;
20
21 QStringList suggest(const QString &word) const override;
22
23 bool storeReplacement(const QString &bad, const QString &good) override;
24
25 bool addToPersonal(const QString &word) override;
26 bool addToSession(const QString &word) override;
27
28private:
29 // spell checker com object, we don't own this
30 ISpellChecker *const m_spellChecker;
31};
32
33#endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.