kdelibs/kdecore/sonnet/enchantclient_p.h
Ivailo Monev 050116df49 kdecore: remove the redundant Sonnet::QSpellEnchantClient::reliability() method
sonnet used to have plugins, now there is only one client and it is builtin

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 03:22:22 +02:00

57 lines
1.6 KiB
C++

// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
/**
* Copyright 2006 Zack Rusin <zack@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifndef QSPELL_ENCHANTCLIENT_H
#define QSPELL_ENCHANTCLIENT_H
#include <QtCore/QSet>
#include <QtCore/qvariant.h>
#include <enchant.h>
namespace Sonnet
{
class QSpellEnchantDict;
class QSpellEnchantClient: public QObject
{
Q_OBJECT
public:
QSpellEnchantClient(QObject *parent);
~QSpellEnchantClient();
QString name() const {
return QString::fromLatin1("Enchant");
}
QSpellEnchantDict *createSpeller(const QString &language);
QStringList languages() const;
void addLanguage(const QString &lang);
void removeDictRef(EnchantDict *dict);
private:
EnchantBroker *m_broker;
QSet<QString> m_languages;
QHash<EnchantDict*, int> m_dictRefs;
};
}
#endif