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

Sonnet

  • 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
30namespace Sonnet {
31 class SpellerPlugin;
32}
33using Sonnet::SpellerPlugin;
34
35class QSpellEnchantClient : public Sonnet::Client
36{
37 Q_OBJECT
38public:
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
58private:
59 EnchantBroker *m_broker;
60 QSet<QString> m_languages;
61 QHash<EnchantDict*, int> m_dictRefs;
62};
63
64#endif
QHash
QObject
QSet
QSpellEnchantClient
Definition: enchantclient.h:36
QSpellEnchantClient::addLanguage
void addLanguage(const QString &lang)
Definition: enchantclient.cpp:88
QSpellEnchantClient::removeDictRef
void removeDictRef(EnchantDict *dict)
Definition: enchantclient.cpp:93
QSpellEnchantClient::languages
virtual QStringList languages() const
Definition: enchantclient.cpp:83
QSpellEnchantClient::createSpeller
virtual SpellerPlugin * createSpeller(const QString &language)
Definition: enchantclient.cpp:62
QSpellEnchantClient::reliability
virtual int reliability() const
Definition: enchantclient.h:42
QSpellEnchantClient::~QSpellEnchantClient
~QSpellEnchantClient()
Definition: enchantclient.cpp:57
QSpellEnchantClient::name
virtual QString name() const
Definition: enchantclient.h:50
Sonnet::Client
Sonnet::SpellerPlugin
client_p.h
Sonnet
kspell_aspellclient.h
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