• 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
enchantclient.h
Go to the documentation of this file.
1 // -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
20 #ifndef QSPELL_ENCHANTCLIENT_H
21 #define QSPELL_ENCHANTCLIENT_H
22 
23 #include "spellerplugin_p.h"
24 #include "client_p.h"
25 
26 #include <QtCore/QSet>
27 #include <QtCore/QVariantList>
28 #include <enchant.h>
29 
30 namespace Sonnet {
31  class SpellerPlugin;
32 }
33 using Sonnet::SpellerPlugin;
34 
35 class QSpellEnchantClient : public Sonnet::Client
36 {
37  Q_OBJECT
38 public:
39  QSpellEnchantClient(QObject *parent, const QVariantList & /* args */);
40  ~QSpellEnchantClient();
41 
42  virtual int reliability() const {
43  return 30;
44  }
45 
46  virtual SpellerPlugin *createSpeller(const QString &language);
47 
48  virtual QStringList languages() const;
49 
50  virtual QString name() const {
51  return QString::fromLatin1("Enchant");
52  }
53 
54  void addLanguage(const QString &lang);
55 
56  void removeDictRef(EnchantDict *dict);
57 
58 private:
59  EnchantBroker *m_broker;
60  QSet<QString> m_languages;
61  QHash<EnchantDict*, int> m_dictRefs;
62 };
63 
64 #endif
QSpellEnchantClient::name
virtual QString name() const
Definition: enchantclient.h:50
QSpellEnchantClient::addLanguage
void addLanguage(const QString &lang)
Definition: enchantclient.cpp:88
client_p.h
QHash< EnchantDict *, int >
QSpellEnchantClient::~QSpellEnchantClient
~QSpellEnchantClient()
Definition: enchantclient.cpp:57
QObject
spellerplugin_p.h
QSpellEnchantClient::QSpellEnchantClient
QSpellEnchantClient(QObject *parent, const QVariantList &)
Definition: enchantclient.cpp:48
QSet< QString >
QSpellEnchantClient::languages
virtual QStringList languages() const
Definition: enchantclient.cpp:83
QSpellEnchantClient::reliability
virtual int reliability() const
Definition: enchantclient.h:42
QString
QStringList
Sonnet::SpellerPlugin
QSpellEnchantClient::createSpeller
virtual SpellerPlugin * createSpeller(const QString &language)
Definition: enchantclient.cpp:62
QString::fromLatin1
QString fromLatin1(const char *str, int size)
QSpellEnchantClient
Definition: enchantclient.h:35
QObject::parent
QObject * parent() const
QSpellEnchantClient::removeDictRef
void removeDictRef(EnchantDict *dict)
Definition: enchantclient.cpp:93
Sonnet::Client
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