Sonnet

aspellclient.h
1 /*
2  * kspell_aspellclient.h
3  *
4  * SPDX-FileCopyrightText: 2003 Zack Rusin <[email protected]>
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 
15 namespace Sonnet
16 {
17 class SpellerPlugin;
18 }
19 using Sonnet::SpellerPlugin;
20 
21 class ASpellClient : public Sonnet::Client
22 {
23  Q_OBJECT
24  Q_INTERFACES(Sonnet::Client)
25  Q_PLUGIN_METADATA(IID "org.kde.Sonnet.ASpellClient")
26 
27 public:
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 
45 private:
46  AspellConfig *const m_config;
47 };
48 
49 #endif
The sonnet namespace.
QString name(StandardShortcut id)
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.