Sonnet

aspelldict.h
1/*
2 * kspell_aspelldict.h
3 *
4 * SPDX-FileCopyrightText: 2003 Zack Rusin <zack@kde.org>
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
15class ASpellDict : public Sonnet::SpellerPlugin
16{
17public:
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
29private:
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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:15:10 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.