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

Sonnet

  • sonnet
  • plugins
  • enchant
enchantdict.h
Go to the documentation of this file.
1// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
20#ifndef QSPELL_ENCHANTDICT_H
21#define QSPELL_ENCHANTDICT_H
22
23#include "spellerplugin_p.h"
24
25#include <enchant.h>
26
27class QSpellEnchantClient;
28
29class QSpellEnchantDict : public Sonnet::SpellerPlugin
30{
31public:
32 ~QSpellEnchantDict();
33 virtual bool isCorrect(const QString &word) const;
34
35 virtual QStringList suggest(const QString &word) const;
36
37 virtual bool storeReplacement(const QString &bad,
38 const QString &good);
39
40 virtual bool addToPersonal(const QString &word);
41 virtual bool addToSession(const QString &word);
42protected:
43 friend class QSpellEnchantClient;
44 QSpellEnchantDict(QSpellEnchantClient *client,
45 EnchantBroker *broker,
46 EnchantDict *dict,
47 const QString &language);
48
49private:
50 EnchantBroker *m_broker;
51 EnchantDict *m_dict;
52 QSpellEnchantClient *m_client;
53};
54
55#endif
QSpellEnchantClient
Definition: enchantclient.h:36
QSpellEnchantDict
Definition: enchantdict.h:30
QSpellEnchantDict::~QSpellEnchantDict
~QSpellEnchantDict()
Definition: enchantdict.cpp:39
QSpellEnchantDict::storeReplacement
virtual bool storeReplacement(const QString &bad, const QString &good)
Definition: enchantdict.cpp:74
QSpellEnchantDict::addToSession
virtual bool addToSession(const QString &word)
Definition: enchantdict.cpp:89
QSpellEnchantDict::suggest
virtual QStringList suggest(const QString &word) const
Definition: enchantdict.cpp:54
QSpellEnchantDict::isCorrect
virtual bool isCorrect(const QString &word) const
Definition: enchantdict.cpp:47
QSpellEnchantDict::addToPersonal
virtual bool addToPersonal(const QString &word)
Definition: enchantdict.cpp:83
Sonnet::SpellerPlugin
Sonnet::SpellerPlugin::language
QString language() const
spellerplugin_p.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.

Sonnet

Skip menu "Sonnet"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • 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