9#include "voikkoclient.h"
10#include "voikkodebug.h"
11#include "voikkodict.h"
13VoikkoClient::VoikkoClient(
QObject *parent)
16 qCDebug(SONNET_VOIKKO) <<
"Initializing Voikko spell checker plugin.";
18 char **dictionaries = voikkoListSupportedSpellingLanguages(
nullptr);
24 for (
int i = 0; dictionaries[i] !=
nullptr; ++i) {
26 m_supportedLanguages.append(language);
27 qCDebug(SONNET_VOIKKO) <<
"Found dictionary for language:" << language;
30 voikkoFreeCstrArray(dictionaries);
33VoikkoClient::~VoikkoClient()
37int VoikkoClient::reliability()
const
42Sonnet::SpellerPlugin *VoikkoClient::createSpeller(
const QString &language)
44 VoikkoDict *speller =
new VoikkoDict(language);
45 if (speller->initFailed()) {
55 return m_supportedLanguages;
58QString VoikkoClient::name()
const
60 return QStringLiteral(
"Voikko");
63#include "moc_voikkoclient.cpp"
QString fromUtf8(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:33 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.