21 #include "tdespell_aspellclient.h"
23 #include "tdespell_aspelldict.h"
25 #include <kgenericfactory.h>
28 typedef KGenericFactory<ASpellClient> ASpellClientFactory;
29 K_EXPORT_COMPONENT_FACTORY( tdespell_aspell, ASpellClientFactory(
"tdespell_aspell" ) )
33 ASpellClient::ASpellClient( TQObject *parent, const
char *name, const TQStringList& )
36 m_config = new_aspell_config();
39 ASpellClient::~ASpellClient()
41 delete_aspell_config( m_config );
44 Dictionary* ASpellClient::dictionary(
const TQString& language )
50 TQStringList ASpellClient::languages()
const
52 AspellDictInfoList *l = get_aspell_dict_info_list( m_config );
53 AspellDictInfoEnumeration *el = aspell_dict_info_list_elements( l );
56 const AspellDictInfo *di = 0;
57 while ( ( di = aspell_dict_info_enumeration_next( el ) ) ) {
58 langs.append( di->name );
61 delete_aspell_dict_info_enumeration( el );
66 #include "tdespell_aspellclient.moc"
The fact that this class inherits from TQObject makes me hugely unhappy.
Class is returned by from Broker.