Sonnet

hspellclient.cpp
1/*
2 * kspell_hspellclient.cpp
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#include "hspellclient.h"
10
11#include "hspelldict.h"
12
13using namespace Sonnet;
14
15HSpellClient::HSpellClient(QObject *parent)
16 : Client(parent)
17{
18}
19
20HSpellClient::~HSpellClient()
21{
22}
23
24SpellerPlugin *HSpellClient::createSpeller(const QString &language)
25{
26 HSpellDict *ad = new HSpellDict(language);
27 return ad;
28}
29
30QStringList HSpellClient::languages() const
31{
32 QStringList langs;
33 HSpellDict ad(QStringLiteral("he"));
34 if (ad.isInitialized()) {
35 langs.append(QStringLiteral("he"));
36 }
37 return langs;
38}
39
40#include "moc_hspellclient.cpp"
The sonnet namespace.
void append(QList< T > &&value)
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.