Sonnet
enchantdict.h
Go to the documentation of this file.00001 // -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*- 00020 #ifndef QSPELL_ENCHANTDICT_H 00021 #define QSPELL_ENCHANTDICT_H 00022 00023 #include "spellerplugin_p.h" 00024 00025 #include <enchant.h> 00026 00027 class QSpellEnchantClient; 00028 00029 class QSpellEnchantDict : public Sonnet::SpellerPlugin 00030 { 00031 public: 00032 ~QSpellEnchantDict(); 00033 virtual bool isCorrect(const QString &word) const; 00034 00035 virtual QStringList suggest(const QString &word) const; 00036 00037 virtual bool storeReplacement(const QString &bad, 00038 const QString &good); 00039 00040 virtual bool addToPersonal(const QString &word); 00041 virtual bool addToSession(const QString &word); 00042 protected: 00043 friend class QSpellEnchantClient; 00044 QSpellEnchantDict(QSpellEnchantClient *client, 00045 EnchantBroker *broker, 00046 EnchantDict *dict, 00047 const QString &language); 00048 00049 private: 00050 EnchantBroker *m_broker; 00051 EnchantDict *m_dict; 00052 QSpellEnchantClient *m_client; 00053 }; 00054 00055 #endif