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

tdespell2

  • tdespell2
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 TDESPELL_BACKGROUNDENGINE_H
22#define TDESPELL_BACKGROUNDENGINE_H
23
24#include "broker.h"
25
26#include <tqobject.h>
27#include <tqstringlist.h>
28
29namespace KSpell2
30{
31 class Filter;
32 class Broker;
33 class Dictionary;
34 class BackgroundEngine : public TQObject
35 {
36 TQ_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
tdespell_hspellclient.h
Definition: backgroundchecker.h:29

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.9.4
This website is maintained by Timothy Pearson.