Sonnet

ispellcheckerdict.h
1 /*
2  SPDX-FileCopyrightText: 2019 Christoph Cullmann <[email protected]>
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 
14 class ISpellCheckerDict : public Sonnet::SpellerPlugin
15 {
16 public:
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 
28 private:
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-2022 The KDE developers.
Generated on Sun Sep 25 2022 04:14:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.