tdespell2
tdespell_hspellclient.cpp
00001
00022 #include "tdespell_hspellclient.h"
00023
00024 #include "tdespell_hspelldict.h"
00025
00026 #include <kgenericfactory.h>
00027 #include <kdebug.h>
00028
00029 typedef KGenericFactory<HSpellClient> HSpellClientFactory;
00030 K_EXPORT_COMPONENT_FACTORY( tdespell_hspell, HSpellClientFactory( "tdespell_hspell" ) )
00031
00032 using namespace KSpell2;
00033
00034 HSpellClient::HSpellClient( TQObject *parent, const char *name, const TQStringList& )
00035 : Client( parent, name )
00036 {
00037 }
00038
00039 HSpellClient::~HSpellClient()
00040 {
00041 }
00042
00043 Dictionary* HSpellClient::dictionary( const TQString& language )
00044 {
00045 HSpellDict *ad = new HSpellDict( language );
00046 return ad;
00047 }
00048
00049 TQStringList HSpellClient::languages() const
00050 {
00051 TQStringList langs;
00052 langs.append( "he" );
00053
00054 return langs;
00055 }
00056
00057 #include "tdespell_hspellclient.moc"