Sonnet

hspellclient.h
1 /*
2  * kspell_hspellclient.h
3  *
4  * SPDX-FileCopyrightText: 2003 Zack Rusin <[email protected]>
5  * SPDX-FileCopyrightText: 2005 Mashrab Kuvatov <[email protected]>
6  *
7  * SPDX-License-Identifier: LGPL-2.1-or-later
8  */
9 #ifndef KSPELL_HSPELLCLIENT_H
10 #define KSPELL_HSPELLCLIENT_H
11 
12 #include "client_p.h"
13 
14 /* libhspell is a C library and it does not have #ifdef __cplusplus */
15 extern "C" {
16 #include "hspell.h"
17 }
18 
19 namespace Sonnet
20 {
21 class SpellerPlugin;
22 }
23 using Sonnet::SpellerPlugin;
24 
25 class HSpellClient : public Sonnet::Client
26 {
27  Q_OBJECT
28  Q_INTERFACES(Sonnet::Client)
29  Q_PLUGIN_METADATA(IID "org.kde.Sonnet.HSpellClient")
30 public:
31  explicit HSpellClient(QObject *parent = nullptr);
32  ~HSpellClient();
33 
34  int reliability() const override
35  {
36  return 20;
37  }
38 
39  SpellerPlugin *createSpeller(const QString &language) override;
40 
41  QStringList languages() const override;
42 
43  QString name() const override
44  {
45  return QString::fromLatin1("HSpell");
46  }
47 
48 private:
49 };
50 
51 #endif
The sonnet namespace.
QString fromLatin1(const char *str, int size)
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.