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

Sonnet

  • sonnet
  • plugins
  • hspell
kspell_hspellclient.cpp
Go to the documentation of this file.
1
22#include "kspell_hspellclient.h"
23
24#include "kspell_hspelldict.h"
25
26#include <kpluginfactory.h>
27#include <kpluginloader.h>
28#include <kdebug.h>
29
30K_PLUGIN_FACTORY( HSpellClientFactory, registerPlugin<HSpellClient>(); )
31K_EXPORT_PLUGIN( HSpellClientFactory( "kspell_hspell" ) )
32
33using namespace Sonnet;
34
35HSpellClient::HSpellClient(QObject *parent,
36 const QVariantList &/* args */)
37 : Client(parent)
38{
39}
40
41HSpellClient::~HSpellClient()
42{
43}
44
45SpellerPlugin *HSpellClient::createSpeller(const QString &language)
46{
47 HSpellDict *ad = new HSpellDict(language);
48 return ad;
49}
50
51QStringList HSpellClient::languages() const
52{
53 QStringList langs;
54 HSpellDict ad("he");
55 if (ad.isInitialized()) {
56 langs.append( "he" );
57 }
58 return langs;
59}
60
61#include "kspell_hspellclient.moc"
HSpellClient
Definition: kspell_hspellclient.h:39
HSpellClient::~HSpellClient
~HSpellClient()
Definition: kspell_hspellclient.cpp:41
HSpellClient::languages
virtual QStringList languages() const
Definition: kspell_hspellclient.cpp:51
HSpellClient::createSpeller
virtual SpellerPlugin * createSpeller(const QString &language)
Definition: kspell_hspellclient.cpp:45
HSpellDict
kspell_hspelldict.h
Definition: kspell_hspelldict.h:32
HSpellDict::isInitialized
bool isInitialized() const
Definition: kspell_hspelldict.h:45
K_PLUGIN_FACTORY
#define K_PLUGIN_FACTORY(name, pluginRegistrations)
K_EXPORT_PLUGIN
#define K_EXPORT_PLUGIN(factory)
QObject
Sonnet::Client
Sonnet::SpellerPlugin
kdebug.h
kpluginfactory.h
kpluginloader.h
kspell_hspellclient.h
kspell_hspelldict.h
Sonnet
kspell_aspellclient.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