• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdespell2
 

tdespell2

backgroundengine.h

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 TDESPELL_BACKGROUNDENGINE_H
00022 #define TDESPELL_BACKGROUNDENGINE_H
00023 
00024 #include "broker.h"
00025 
00026 #include <tqobject.h>
00027 #include <tqstringlist.h>
00028 
00029 namespace KSpell2
00030 {
00031     class Filter;
00032     class Broker;
00033     class Dictionary;
00034     class BackgroundEngine : public TQObject
00035     {
00036         Q_OBJECT
00037     public:
00038         BackgroundEngine( TQObject *parent );
00039         ~BackgroundEngine();
00040 
00041         void setBroker( const Broker::Ptr& broker );
00042         Broker *broker() const { return m_broker; }
00043 
00044         void setText( const TQString& );
00045         TQString text() const;
00046 
00047         void changeLanguage( const TQString& );
00048         TQString language() const;
00049 
00050         void setFilter( Filter *filter );
00051         Filter *filter() const { return m_filter; }
00052 
00053         void start();
00054         void continueChecking();
00055         void stop();
00056 
00057         bool        checkWord( const TQString& word );
00058         TQStringList suggest( const TQString& word );
00059         bool        addWord( const TQString& word );
00060     signals:
00061         void misspelling( const TQString&, int );
00062         void done();
00063     protected slots:
00064         void checkNext();
00065     private:
00066         Filter            *m_filter;
00067         Broker::Ptr        m_broker;
00068         Dictionary        *m_dict;
00069         DefaultDictionary *m_defaultDict;
00070     };
00071 }
00072 
00073 #endif

tdespell2

Skip menu "tdespell2"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

tdespell2

Skip menu "tdespell2"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdespell2 by doxygen 1.6.3
This website is maintained by Timothy Pearson.