Sonnet
kspell_hspellclient.cpp
Go to the documentation of this file.
00001 00022 #include "kspell_hspellclient.h" 00023 00024 #include "kspell_hspelldict.h" 00025 00026 #include <kpluginfactory.h> 00027 #include <kpluginloader.h> 00028 #include <kdebug.h> 00029 00030 K_PLUGIN_FACTORY( HSpellClientFactory, registerPlugin<HSpellClient>(); ) 00031 K_EXPORT_PLUGIN( HSpellClientFactory( "kspell_hspell" ) ) 00032 00033 using namespace Sonnet; 00034 00035 HSpellClient::HSpellClient(QObject *parent, 00036 const QVariantList &/* args */) 00037 : Client(parent) 00038 { 00039 } 00040 00041 HSpellClient::~HSpellClient() 00042 { 00043 } 00044 00045 SpellerPlugin *HSpellClient::createSpeller(const QString &language) 00046 { 00047 HSpellDict *ad = new HSpellDict(language); 00048 return ad; 00049 } 00050 00051 QStringList HSpellClient::languages() const 00052 { 00053 QStringList langs; 00054 HSpellDict ad("he"); 00055 if (ad.isInitialized()) { 00056 langs.append( "he" ); 00057 } 00058 return langs; 00059 } 00060 00061 #include "kspell_hspellclient.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Jan 21 2019 12:34:26 by doxygen 1.7.5.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Jan 21 2019 12:34:26 by doxygen 1.7.5.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.