kspell_ispellclient.h

00001 /*
00002  * kspell_ispellclient.h
00003  *
00004  * Copyright (C)  2003  Zack Rusin <zack@kde.org>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301  USA
00020  */
00021 #ifndef KSPELL_ISPELLCLIENT_H
00022 #define KSPELL_ISPELLCLIENT_H
00023 
00024 #include "client.h"
00025 #include <qobject.h>
00026 
00027 #include "ispell_checker.h"
00028 
00029 namespace KSpell2 {
00030     class Dictionary;
00031 }
00032 using KSpell2::Dictionary;
00033 
00034 class ISpellClient : public KSpell2::Client
00035 {
00036     Q_OBJECT
00037 public:
00038     ISpellClient( QObject *parent, const char *name, const QStringList & /* args */  );
00039     ~ISpellClient();
00040 
00041     virtual int reliability() const {
00042         return 10;
00043     }
00044 
00045     virtual Dictionary* dictionary( const QString& language );
00046 
00047     virtual QStringList languages() const;
00048 
00049     virtual QString name() const {
00050         return "ISpell";
00051     }
00052 private:
00053 
00054 };
00055 
00056 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys