Sonnet

nsspellcheckerclient.h
1 /*
2  * nsspellcheckerclient.h
3  *
4  * SPDX-FileCopyrightText: 2015 Nick Shaforostoff <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-or-later
7  */
8 #ifndef KSPELL_NSSPELLCLIENT_H
9 #define KSPELL_NSSPELLCLIENT_H
10 
11 #include "client_p.h"
12 
13 namespace Sonnet
14 {
15 class SpellerPlugin;
16 }
17 using Sonnet::SpellerPlugin;
18 
19 class NSSpellCheckerClient : public Sonnet::Client
20 {
21  Q_OBJECT
22  Q_INTERFACES(Sonnet::Client)
23  Q_PLUGIN_METADATA(IID "org.kde.Sonnet.NSSpellClient")
24 public:
25  explicit NSSpellCheckerClient(QObject *parent = nullptr);
26  ~NSSpellCheckerClient();
27 
28  int reliability() const;
29 
30  SpellerPlugin *createSpeller(const QString &language);
31  QStringList languages() const;
32  QString name() const
33  {
34  return QStringLiteral("NSSpellChecker");
35  }
36 };
37 
38 #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.