Sonnet

aspelldict.h
1 /*
2  * kspell_aspelldict.h
3  *
4  * SPDX-FileCopyrightText: 2003 Zack Rusin <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-or-later
7  */
8 #ifndef KSPELL_ASPELLDICT_H
9 #define KSPELL_ASPELLDICT_H
10 
11 #include "spellerplugin_p.h"
12 
13 #include "aspell.h"
14 
15 class ASpellDict : public Sonnet::SpellerPlugin
16 {
17 public:
18  explicit ASpellDict(const QString &lang);
19  ~ASpellDict() override;
20  bool isCorrect(const QString &word) const override;
21 
22  QStringList suggest(const QString &word) const override;
23 
24  bool storeReplacement(const QString &bad, const QString &good) override;
25 
26  bool addToPersonal(const QString &word) override;
27  bool addToSession(const QString &word) override;
28 
29 private:
30  AspellConfig *m_config = nullptr;
31  AspellSpeller *m_speller = nullptr;
32 };
33 
34 #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.