• 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_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 
30 K_PLUGIN_FACTORY( HSpellClientFactory, registerPlugin<HSpellClient>(); )
31 K_EXPORT_PLUGIN( HSpellClientFactory( "kspell_hspell" ) )
32 
33 using namespace Sonnet;
34 
35 HSpellClient::HSpellClient(QObject *parent,
36  const QVariantList &/* args */)
37  : Client(parent)
38 {
39 }
40 
41 HSpellClient::~HSpellClient()
42 {
43 }
44 
45 SpellerPlugin *HSpellClient::createSpeller(const QString &language)
46 {
47  HSpellDict *ad = new HSpellDict(language);
48  return ad;
49 }
50 
51 QStringList 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::languages
virtual QStringList languages() const
Definition: kspell_hspellclient.cpp:51
kdebug.h
HSpellClient
Definition: kspell_hspellclient.h:38
kspell_hspellclient.h
HSpellClient::createSpeller
virtual SpellerPlugin * createSpeller(const QString &language)
Definition: kspell_hspellclient.cpp:45
K_PLUGIN_FACTORY
#define K_PLUGIN_FACTORY(name, pluginRegistrations)
QList::append
void append(const T &value)
kspell_hspelldict.h
QObject
kpluginloader.h
HSpellClient::~HSpellClient
~HSpellClient()
Definition: kspell_hspellclient.cpp:41
QString
QStringList
Sonnet::SpellerPlugin
kpluginfactory.h
HSpellDict
kspell_hspelldict.h
Definition: kspell_hspelldict.h:31
HSpellDict::isInitialized
bool isInitialized() const
Definition: kspell_hspelldict.h:45
K_EXPORT_PLUGIN
#define K_EXPORT_PLUGIN(factory)
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