• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

backgroundengine_p.h

Go to the documentation of this file.
00001 /*
00002  * backgroundengine.h
00003  *
00004  * Copyright (C)  2004  Zack Rusin <zack@kde.org>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301  USA
00020  */
00021 #ifndef SONNET_BACKGROUNDENGINE_P_H
00022 #define SONNET_BACKGROUNDENGINE_P_H
00023 
00024 #include "speller.h"
00025 #include "loader_p.h"
00026 
00027 #include <QtCore/QObject>
00028 #include <QtCore/QStringList>
00029 
00030 namespace Sonnet
00031 {
00032     class Filter;
00033     class Loader;
00034     class SpellerPlugin;
00035     class BackgroundEngine : public QObject
00036     {
00037         Q_OBJECT
00038     public:
00039         explicit BackgroundEngine(QObject *parent);
00040         ~BackgroundEngine();
00041 
00042         void setSpeller(const Speller &speller);
00043         Speller speller() const { return m_dict; }
00044 
00045         void setText(const QString &);
00046         QString text() const;
00047 
00048         void changeLanguage(const QString &);
00049         QString language() const;
00050 
00051         void setFilter(Filter *filter);
00052         Filter *filter() const { return m_filter; }
00053 
00054         void start();
00055         void continueChecking();
00056         void stop();
00057 
00058         bool        checkWord(const QString &word);
00059         QStringList suggest(const QString &word);
00060         bool        addWord(const QString &word);
00061     Q_SIGNALS:
00062 
00066         void misspelling(const QString&, int);
00067 
00071         void done();
00072 
00073     protected Q_SLOTS:
00074         void checkNext();
00075     private:
00076         Filter            *m_filter;
00077         Speller            m_dict;
00078     };
00079 }
00080 
00081 #endif // SONNET_BACKGROUNDENGINE_P_H

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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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