26 #ifndef SPELLCHECKER_H
27 #define SPELLCHECKER_H
40 Q_CLASSINFO(
"Service",
"SpellChecker")
41 Q_DISABLE_COPY(SpellChecker)
46 virtual ~SpellChecker();
50 virtual
bool isCorrect(const QString &word) const = 0;
54 bool isMisspelled(const QString &word)
const {
return !isCorrect(word); }
58 virtual QStringList suggest(
const QString &word)
const = 0;
62 virtual void store(
const QString &word)
const = 0;
66 virtual void storeReplacement(
const QString &bad,
const QString &good) = 0;
70 static SpellChecker *instance();
75 void dictionaryChanged();
78 virtual void virtual_hook(
int id,
void *data);
83 #endif // SPELLCHECKER_H