• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

backgroundchecker.h

Go to the documentation of this file.
00001 
00021 #ifndef SONNET_BACKGROUNDCHECKER_H
00022 #define SONNET_BACKGROUNDCHECKER_H
00023 
00024 #include "speller.h"
00025 
00026 #include <kdecore_export.h>
00027 
00028 #include <QtCore/QObject>
00029 
00030 namespace Sonnet
00031 {
00032     class Speller;
00033 
00051     class KDECORE_EXPORT BackgroundChecker : public QObject
00052     {
00053         Q_OBJECT
00054     public:
00055         explicit BackgroundChecker(QObject *parent =0);
00056         explicit BackgroundChecker(const Speller &speller, QObject *parent =0);
00057         ~BackgroundChecker();
00058 
00065         void setText(const QString &text);
00066         QString text() const;
00067 
00068         QString currentContext() const;
00069 
00070         Speller speller() const;
00071         void setSpeller(const Speller &speller);
00072 
00073         bool checkWord(const QString &word);
00074         QStringList suggest(const QString &word) const;
00075         bool addWordToPersonal(const QString &word);
00076     public Q_SLOTS:
00077         virtual void start();
00078         virtual void stop();
00079         void replace(int start, const QString &oldText,
00080                      const QString &newText);
00081         void changeLanguage(const QString &lang);
00082 
00088         virtual void continueChecking();
00089 
00090     Q_SIGNALS:
00094         void misspelling(const QString &word, int start);
00095 
00099         void done();
00100 
00101     protected:
00110         virtual QString fetchMoreText();
00111 
00116         virtual void finishedCurrentFeed();
00117 
00118     protected Q_SLOTS:
00119         void slotEngineDone();
00120     private:
00121         class Private;
00122         Private *const d;
00123     };
00124 
00125 }
00126 
00127 #endif

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal