File indexing completed on 2024-04-28 04:00:53
0001 /* 0002 * kspell_hspellclient.cpp 0003 * 0004 * SPDX-FileCopyrightText: 2003 Zack Rusin <zack@kde.org> 0005 * SPDX-FileCopyrightText: 2005 Mashrab Kuvatov <kmashrab@uni-bremen.de> 0006 * 0007 * SPDX-License-Identifier: LGPL-2.1-or-later 0008 */ 0009 #include "hspellclient.h" 0010 0011 #include "hspelldict.h" 0012 0013 using namespace Sonnet; 0014 0015 HSpellClient::HSpellClient(QObject *parent) 0016 : Client(parent) 0017 { 0018 } 0019 0020 HSpellClient::~HSpellClient() 0021 { 0022 } 0023 0024 SpellerPlugin *HSpellClient::createSpeller(const QString &language) 0025 { 0026 HSpellDict *ad = new HSpellDict(language); 0027 return ad; 0028 } 0029 0030 QStringList HSpellClient::languages() const 0031 { 0032 QStringList langs; 0033 HSpellDict ad(QStringLiteral("he")); 0034 if (ad.isInitialized()) { 0035 langs.append(QStringLiteral("he")); 0036 } 0037 return langs; 0038 } 0039 0040 #include "moc_hspellclient.cpp"