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 langs.append( "he" ); 00055 00056 return langs; 00057 } 00058 00059 #include "kspell_hspellclient.moc"