KDECore
client_p.h
Go to the documentation of this file.
00001 // -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*- 00002 /* 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 SONNET_CLIENT_P_H 00022 #define SONNET_CLIENT_P_H 00023 00024 #include <QtCore/QObject> 00025 #include <QtCore/QStringList> 00026 #include <QtCore/QString> 00027 00028 #include <kdecore_export.h> 00029 /* 00030 * The fact that this class inherits from QObject makes me 00031 * hugely unhappy. The reason for as of this writing is that 00032 * I don't really feel like writing my own KLibFactory 00033 * that would load anything else then QObject derivatives. 00034 */ 00035 namespace Sonnet 00036 { 00037 class SpellerPlugin; 00038 00043 class KDECORE_EXPORT Client : public QObject 00044 { 00045 Q_OBJECT 00046 public: 00047 Client( QObject *parent = 0 ); 00048 00052 virtual int reliability() const = 0; 00053 00064 virtual SpellerPlugin *createSpeller(const QString &language) =0; 00065 00069 virtual QStringList languages() const =0; 00070 00074 virtual QString name() const =0; 00075 }; 00076 } 00077 00078 #endif // SONNET_CLIENT_P_H
KDE 4.6 API Reference