Sonnet

aspellclient.h
1/*
2 * kspell_aspellclient.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_ASPELLCLIENT_H
9#define KSPELL_ASPELLCLIENT_H
10
11#include "client_p.h"
12
13#include "aspell.h"
14
15namespace Sonnet
16{
17class SpellerPlugin;
18}
19using Sonnet::SpellerPlugin;
20
21class ASpellClient : public Sonnet::Client
22{
23 Q_OBJECT
24 Q_INTERFACES(Sonnet::Client)
25 Q_PLUGIN_METADATA(IID "org.kde.Sonnet.ASpellClient")
26
27public:
28 explicit ASpellClient(QObject *parent = nullptr);
29 ~ASpellClient() override;
30
31 int reliability() const override
32 {
33 return 20;
34 }
35
36 SpellerPlugin *createSpeller(const QString &language) override;
37
38 QStringList languages() const override;
39
40 QString name() const override
41 {
42 return QStringLiteral("ASpell");
43 }
44
45private:
46 AspellConfig *const m_config;
47};
48
49#endif
The sonnet namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.