Sonnet

ispellcheckerclient.h
1/*
2 SPDX-FileCopyrightText: 2019 Christoph Cullmann <cullmann@kde.org>
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
17namespace Sonnet
18{
19class SpellerPlugin;
20}
21using Sonnet::SpellerPlugin;
22
23class ISpellCheckerClient : public Sonnet::Client
24{
25 Q_OBJECT
26 Q_INTERFACES(Sonnet::Client)
27 Q_PLUGIN_METADATA(IID "org.kde.Sonnet.ISpellCheckerClient")
28public:
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
46private:
47 // we internally keep all spell checker interfaces alive
49};
50
51#endif
The sonnet namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.