• 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
  • hspell
kspell_hspelldict.h
Go to the documentation of this file.
1 
22 #ifndef KSPELL_HSPELLDICT_H
23 #define KSPELL_HSPELLDICT_H
24 
25 #include "spellerplugin_p.h"
26 /* libhspell is a C library and it does not have #ifdef __cplusplus */
27 extern "C" {
28 #include "hspell.h"
29 }
30 
31 class HSpellDict : public Sonnet::SpellerPlugin
32 {
33 public:
34  explicit HSpellDict( const QString& lang );
35  ~HSpellDict();
36  virtual bool isCorrect( const QString& word ) const;
37 
38  virtual QStringList suggest( const QString& word ) const;
39 
40  virtual bool storeReplacement( const QString& bad,
41  const QString& good );
42 
43  virtual bool addToPersonal( const QString& word );
44  virtual bool addToSession( const QString& word );
45  inline bool isInitialized() const { return initialized; }
46 private:
47  struct dict_radix *m_speller;
48  QTextCodec *codec;
49  bool initialized;
50 };
51 
52 #endif
HSpellDict::isCorrect
virtual bool isCorrect(const QString &word) const
Definition: kspell_hspelldict.cpp:51
HSpellDict::~HSpellDict
~HSpellDict()
Definition: kspell_hspelldict.cpp:44
HSpellDict::addToSession
virtual bool addToSession(const QString &word)
Definition: kspell_hspelldict.cpp:98
HSpellDict::addToPersonal
virtual bool addToPersonal(const QString &word)
Definition: kspell_hspelldict.cpp:91
spellerplugin_p.h
QString
QTextCodec
QStringList
Sonnet::SpellerPlugin
HSpellDict::storeReplacement
virtual bool storeReplacement(const QString &bad, const QString &good)
Definition: kspell_hspelldict.cpp:83
HSpellDict
kspell_hspelldict.h
Definition: kspell_hspelldict.h:31
HSpellDict::suggest
virtual QStringList suggest(const QString &word) const
Definition: kspell_hspelldict.cpp:69
HSpellDict::isInitialized
bool isInitialized() const
Definition: kspell_hspelldict.h:45
HSpellDict::HSpellDict
HSpellDict(const QString &lang)
Definition: kspell_hspelldict.cpp:30
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