Sonnet

nsspellcheckerdict.h
1 /*
2  * nsspellcheckerdict.h
3  *
4  * SPDX-FileCopyrightText: 2015 Nick Shaforostoff <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-or-later
7  */
8 #ifndef KSPELL_NSSPELLDICT_H
9 #define KSPELL_NSSPELLDICT_H
10 
11 #include "spellerplugin_p.h"
12 
13 class NSSpellCheckerDict : public Sonnet::SpellerPlugin
14 {
15 public:
16  explicit NSSpellCheckerDict(const QString &lang);
17  ~NSSpellCheckerDict();
18  virtual bool isCorrect(const QString &word) const;
19 
20  virtual QStringList suggest(const QString &word) const;
21 
22  virtual bool storeReplacement(const QString &bad, const QString &good);
23 
24  virtual bool addToPersonal(const QString &word);
25  virtual bool addToSession(const QString &word);
26 
27 private:
28 #ifdef __OBJC__
29  NSString *m_langCode;
30 #else
31  void *m_langCode;
32 #endif
33 };
34 
35 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Sep 25 2022 04:14:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.