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

kspell2

  • kspell2
backgroundengine.h
1 /*
2  * backgroundengine.h
3  *
4  * Copyright (C) 2004 Zack Rusin <zack@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 #ifndef KSPELL_BACKGROUNDENGINE_H
22 #define KSPELL_BACKGROUNDENGINE_H
23 
24 #include "broker.h"
25 
26 #include <tqobject.h>
27 #include <tqstringlist.h>
28 
29 namespace KSpell2
30 {
31  class Filter;
32  class Broker;
33  class Dictionary;
34  class BackgroundEngine : public TQObject
35  {
36  Q_OBJECT
37  public:
38  BackgroundEngine( TQObject *parent );
39  ~BackgroundEngine();
40 
41  void setBroker( const Broker::Ptr& broker );
42  Broker *broker() const { return m_broker; }
43 
44  void setText( const TQString& );
45  TQString text() const;
46 
47  void changeLanguage( const TQString& );
48  TQString language() const;
49 
50  void setFilter( Filter *filter );
51  Filter *filter() const { return m_filter; }
52 
53  void start();
54  void continueChecking();
55  void stop();
56 
57  bool checkWord( const TQString& word );
58  TQStringList suggest( const TQString& word );
59  bool addWord( const TQString& word );
60  signals:
61  void misspelling( const TQString&, int );
62  void done();
63  protected slots:
64  void checkNext();
65  private:
66  Filter *m_filter;
67  Broker::Ptr m_broker;
68  Dictionary *m_dict;
69  DefaultDictionary *m_defaultDict;
70  };
71 }
72 
73 #endif
KSpell2
kspell_hspellclient.h
Definition: backgroundchecker.h:28

kspell2

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

kspell2

Skip menu "kspell2"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kspell2 by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |