kspell_hspellclient.cpp

00001 
00022 #include "kspell_hspellclient.h"
00023 
00024 #include "kspell_hspelldict.h"
00025 
00026 #include <kgenericfactory.h>
00027 #include <kdebug.h>
00028 
00029 typedef KGenericFactory<HSpellClient> HSpellClientFactory;
00030 K_EXPORT_COMPONENT_FACTORY( kspell_hspell, HSpellClientFactory( "kspell_hspell" )  )
00031 
00032 using namespace KSpell2;
00033 
00034 HSpellClient::HSpellClient( QObject *parent, const char *name, const QStringList& /* args */  )
00035     : Client( parent, name )
00036 {
00037 }
00038 
00039 HSpellClient::~HSpellClient()
00040 {
00041 }
00042 
00043 Dictionary* HSpellClient::dictionary( const QString& language )
00044 {
00045     HSpellDict *ad = new HSpellDict( language );
00046     return ad;
00047 }
00048 
00049 QStringList HSpellClient::languages() const
00050 {
00051     QStringList langs;
00052     langs.append( "he" );
00053 
00054     return langs;
00055 }
00056 
00057 #include "kspell_hspellclient.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys