Sonnet

hspellclient.h
1/*
2 * kspell_hspellclient.h
3 *
4 * SPDX-FileCopyrightText: 2003 Zack Rusin <zack@kde.org>
5 * SPDX-FileCopyrightText: 2005 Mashrab Kuvatov <kmashrab@uni-bremen.de>
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 */
15extern "C" {
16#include "hspell.h"
17}
18
19namespace Sonnet
20{
21class SpellerPlugin;
22}
23using Sonnet::SpellerPlugin;
24
25class HSpellClient : public Sonnet::Client
26{
27 Q_OBJECT
28 Q_INTERFACES(Sonnet::Client)
29 Q_PLUGIN_METADATA(IID "org.kde.Sonnet.HSpellClient")
30public:
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
48private:
49};
50
51#endif
The sonnet namespace.
QString fromLatin1(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:15:10 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.