Sonnet

ispellcheckerclient.h
1 /*
2  SPDX-FileCopyrightText: 2019 Christoph Cullmann <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef KSPELL_ISPELLCHECKCLIENT_H
8 #define KSPELL_ISPELLCHECKCLIENT_H
9 
10 #include "client_p.h"
11 
12 #include <spellcheck.h>
13 #include <windows.h>
14 
15 #include <QMap>
16 
17 namespace Sonnet
18 {
19 class SpellerPlugin;
20 }
21 using Sonnet::SpellerPlugin;
22 
23 class ISpellCheckerClient : public Sonnet::Client
24 {
25  Q_OBJECT
26  Q_INTERFACES(Sonnet::Client)
27  Q_PLUGIN_METADATA(IID "org.kde.Sonnet.ISpellCheckerClient")
28 public:
29  explicit ISpellCheckerClient(QObject *parent = nullptr);
30  ~ISpellCheckerClient() override;
31 
32  int reliability() const override
33  {
34  return 40;
35  }
36 
37  SpellerPlugin *createSpeller(const QString &language) override;
38 
39  QStringList languages() const override;
40 
41  QString name() const override
42  {
43  return QStringLiteral("ISpellChecker");
44  }
45 
46 private:
47  // we internally keep all spell checker interfaces alive
49 };
50 
51 #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.