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

Sonnet

  • sources
  • kde-4.14
  • kdelibs
  • 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 
27 class QSpellEnchantClient;
28 
29 class QSpellEnchantDict : public Sonnet::SpellerPlugin
30 {
31 public:
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);
42 protected:
43  friend class QSpellEnchantClient;
44  QSpellEnchantDict(QSpellEnchantClient *client,
45  EnchantBroker *broker,
46  EnchantDict *dict,
47  const QString &language);
48 
49 private:
50  EnchantBroker *m_broker;
51  EnchantDict *m_dict;
52  QSpellEnchantClient *m_client;
53 };
54 
55 #endif
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
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
spellerplugin_p.h
QSpellEnchantDict::QSpellEnchantDict
QSpellEnchantDict(QSpellEnchantClient *client, EnchantBroker *broker, EnchantDict *dict, const QString &language)
Definition: enchantdict.cpp:28
QSpellEnchantDict
Definition: enchantdict.h:29
QString
QStringList
Sonnet::SpellerPlugin::language
QString language() const
Sonnet::SpellerPlugin
QSpellEnchantDict::~QSpellEnchantDict
~QSpellEnchantDict()
Definition: enchantdict.cpp:39
QSpellEnchantClient
Definition: enchantclient.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Sonnet

Skip menu "Sonnet"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs 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

Search



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