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

KDECore

  • kdecore
  • sonnet
backgroundengine_p.h
Go to the documentation of this file.
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 SONNET_BACKGROUNDENGINE_P_H
22#define SONNET_BACKGROUNDENGINE_P_H
23
24#include "speller.h"
25#include "loader_p.h"
26
27#include <QtCore/QObject>
28#include <QtCore/QStringList>
29
30namespace Sonnet
31{
32 class Filter;
33 class Loader;
34 class SpellerPlugin;
35 class BackgroundEngine : public QObject
36 {
37 Q_OBJECT
38 public:
39 explicit BackgroundEngine(QObject *parent);
40 ~BackgroundEngine();
41
42 void setSpeller(const Speller &speller);
43 Speller speller() const { return m_dict; }
44
45 void setText(const QString &);
46 QString text() const;
47
48 void changeLanguage(const QString &);
49 QString language() const;
50
51 void setFilter(Filter *filter);
52 Filter *filter() const { return m_filter; }
53
54 void start();
55 void continueChecking();
56 void stop();
57
58 bool checkWord(const QString &word);
59 QStringList suggest(const QString &word);
60 bool addWord(const QString &word);
61 Q_SIGNALS:
62
66 void misspelling(const QString&, int);
67
71 void done();
72
73 protected Q_SLOTS:
74 void checkNext();
75 private:
76 Filter *m_filter;
77 Speller m_dict;
78 };
79}
80
81#endif // SONNET_BACKGROUNDENGINE_P_H
QObject
QStringList
QString
Sonnet::BackgroundEngine
Definition: backgroundengine_p.h:36
Sonnet::BackgroundEngine::done
void done()
Emitted when all words have been checked.
Sonnet::BackgroundEngine::language
QString language() const
Definition: backgroundengine.cpp:62
Sonnet::BackgroundEngine::stop
void stop()
Definition: backgroundengine.cpp:79
Sonnet::BackgroundEngine::changeLanguage
void changeLanguage(const QString &)
Definition: backgroundengine.cpp:57
Sonnet::BackgroundEngine::~BackgroundEngine
~BackgroundEngine()
Definition: backgroundengine.cpp:37
Sonnet::BackgroundEngine::continueChecking
void continueChecking()
Definition: backgroundengine.cpp:83
Sonnet::BackgroundEngine::setFilter
void setFilter(Filter *filter)
Definition: backgroundengine.cpp:67
Sonnet::BackgroundEngine::misspelling
void misspelling(const QString &, int)
Emitted when a misspelling is found.
Sonnet::BackgroundEngine::checkNext
void checkNext()
Definition: backgroundengine.cpp:88
Sonnet::BackgroundEngine::speller
Speller speller() const
Definition: backgroundengine_p.h:43
Sonnet::BackgroundEngine::start
void start()
Definition: backgroundengine.cpp:74
Sonnet::BackgroundEngine::setSpeller
void setSpeller(const Speller &speller)
Definition: backgroundengine.cpp:42
Sonnet::BackgroundEngine::text
QString text() const
Definition: backgroundengine.cpp:52
Sonnet::BackgroundEngine::filter
Filter * filter() const
Definition: backgroundengine_p.h:52
Sonnet::BackgroundEngine::suggest
QStringList suggest(const QString &word)
Definition: backgroundengine.cpp:114
Sonnet::BackgroundEngine::setText
void setText(const QString &)
Definition: backgroundengine.cpp:47
Sonnet::BackgroundEngine::checkWord
bool checkWord(const QString &word)
Definition: backgroundengine.cpp:104
Sonnet::BackgroundEngine::addWord
bool addWord(const QString &word)
Definition: backgroundengine.cpp:109
Sonnet::Filter
Filter is used to split text into words which will be spell checked.
Definition: filter_p.h:66
Sonnet::Speller
Spell checker object.
Definition: speller.h:39
loader_p.h
Sonnet
The sonnet namespace.
Definition: backgroundchecker.h:34
speller.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal