Sonnet

hspellclient.cpp
1 /*
2  * kspell_hspellclient.cpp
3  *
4  * SPDX-FileCopyrightText: 2003 Zack Rusin <[email protected]>
5  * SPDX-FileCopyrightText: 2005 Mashrab Kuvatov <[email protected]>
6  *
7  * SPDX-License-Identifier: LGPL-2.1-or-later
8  */
9 #include "hspellclient.h"
10 
11 #include "hspelldict.h"
12 
13 using namespace Sonnet;
14 
15 HSpellClient::HSpellClient(QObject *parent)
16  : Client(parent)
17 {
18 }
19 
20 HSpellClient::~HSpellClient()
21 {
22 }
23 
24 SpellerPlugin *HSpellClient::createSpeller(const QString &language)
25 {
26  HSpellDict *ad = new HSpellDict(language);
27  return ad;
28 }
29 
30 QStringList 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 }
void append(const T &value)
The sonnet namespace.
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.