21 #ifndef TDESPELL_BACKGROUNDENGINE_H
22 #define TDESPELL_BACKGROUNDENGINE_H
27 #include <tqstringlist.h>
34 class BackgroundEngine :
public TQObject
38 BackgroundEngine( TQObject *parent );
41 void setBroker(
const Broker::Ptr& broker );
42 Broker *broker()
const {
return m_broker; }
44 void setText(
const TQString& );
45 TQString text()
const;
47 void changeLanguage(
const TQString& );
48 TQString language()
const;
50 void setFilter( Filter *filter );
51 Filter *filter()
const {
return m_filter; }
54 void continueChecking();
57 bool checkWord(
const TQString& word );
58 TQStringList suggest(
const TQString& word );
59 bool addWord(
const TQString& word );
61 void misspelling(
const TQString&,
int );
69 DefaultDictionary *m_defaultDict;