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

Sonnet

kspell_hunspellclient.cpp
Go to the documentation of this file.
00001 
00021 #include "kspell_hunspellclient.h"
00022 #include <QDir>
00023 
00024 #include "kspell_hunspelldict.h"
00025 
00026 #include <kpluginfactory.h>
00027 #include <kpluginloader.h>
00028 #include <kdebug.h>
00029 
00030 K_PLUGIN_FACTORY( HunspellClientFactory, registerPlugin<HunspellClient>(); )
00031 K_EXPORT_PLUGIN( HunspellClientFactory( "kspell_hunspell" ) )
00032 
00033 using namespace Sonnet;
00034 
00035 HunspellClient::HunspellClient( QObject *parent, const QVariantList& /* args */  )
00036     : Client( parent )
00037 {
00038     kDebug()<<" HunspellClient::HunspellClient";
00039 }
00040 
00041 HunspellClient::~HunspellClient()
00042 {
00043 }
00044 
00045 SpellerPlugin *HunspellClient::createSpeller(const QString &language)
00046 {
00047     kDebug()<<" SpellerPlugin *HunspellClient::createSpeller(const QString &language) ;"<<language;
00048     HunspellDict *ad = new HunspellDict( language );
00049     return ad;
00050 }
00051 
00052 QStringList HunspellClient::languages() const
00053 {
00054     QStringList lst;
00055     QDir dir("/usr/share/myspell/dicts/");
00056     if(dir.exists())
00057     {
00058         QStringList lstDic = dir.entryList(QStringList("*.dic"), QDir::Files );
00059         foreach(const QString &tmp, lstDic)
00060         {
00061             lst<< tmp.remove(".dic");
00062         }
00063     }
00064     kDebug()<<" lst !!!!!!!!!!!!!!!!!!!!!!!! :"<<lst;
00065     return lst;
00066 }
00067 
00068 #include "kspell_hunspellclient.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:54:47 by doxygen 1.8.0 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.8.3 API Reference

Skip menu "kdelibs-4.8.3 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