2 * Copyright (C) 2008 Nick Shaforostoff <shaforostoff@kde.ru>
5 * Copyright (C) 2007 Thomas Georgiou <TAGeorgiou@gmail.com> and Jeff Cooper <weirdsox11@gmail.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 #include <Plasma/DataEngine>
27 namespace QStarDict {class DictPlugin;}
30 * This class evaluates the basic expressions given in the interface.
34 class QStarDictEngine : public Plasma::DataEngine
39 QStarDictEngine(QObject* parent, const QVariantList& args );
43 bool sourceRequestEvent(const QString &word);
46 * also loads plugin if it's not loaded
48 QStarDict::DictPlugin* dictPlugin(const QString &name);
57 K_EXPORT_PLASMA_DATAENGINE(qstardict, QStarDictEngine)