defaultdictionary.h
00001 00021 #ifndef KSPELL_DEFAULTDICTIONARY_H 00022 #define KSPELL_DEFAULTDICTIONARY_H 00023 00024 #include "dictionary.h" 00025 00026 #include <qobject.h> 00027 #include <qstringlist.h> 00028 00029 namespace KSpell2 00030 { 00031 class Broker; 00032 class DefaultDictionary : public QObject, 00033 public Dictionary 00034 { 00035 Q_OBJECT 00036 public: 00037 DefaultDictionary( const QString& lang, Broker *broker ); 00038 ~DefaultDictionary(); 00039 public: 00046 bool isValid() const; 00047 00048 //Dictionary interface 00049 virtual bool check( const QString& word ); 00050 virtual QStringList suggest( const QString& word ); 00051 virtual bool checkAndSuggest( const QString& word, 00052 QStringList& suggestions ); 00053 virtual bool storeReplacement( const QString& bad, 00054 const QString& good ); 00055 virtual bool addToPersonal( const QString& word ); 00056 virtual bool addToSession( const QString& word ); 00057 //end of Dictionary interfaces 00058 00059 signals: 00060 void changed(); 00061 00062 protected slots: 00063 void defaultConfigurationChanged(); 00064 00065 private: 00066 class Private; 00067 Private *d; 00068 }; 00069 } 00070 00071 #endif