kiten/lib
dictFileKanjidic.h
Go to the documentation of this file.00001 /* This file is part of Kiten, a KDE Japanese Reference Tool... 00002 Copyright (C) 2001 Jason Katz-Brown <jason@katzbrown.com> 00003 (C) 2006 Joseph Kerian <jkerian@gmail.com> 00004 (C) 2006 Eric Kjeldergaard <kjelderg@gmail.com> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 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 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef KITEN_DICTFILEKANJIDIC_H 00023 #define KITEN_DICTFILEKANJIDIC_H 00024 00025 #include "../dictEdict/dictFileEdict.h" //dictFileEdict definition 00026 #include "entryKanjidic.h" 00027 00028 class DictQuery; 00029 class QString; 00030 class KConfigSkeleton; 00031 00032 class Entry; 00033 00034 class /* NO_EXPORT */ dictFileKanjidic : public dictFileEdict { 00035 public: 00036 dictFileKanjidic(); 00037 virtual ~dictFileKanjidic() {} 00038 00039 bool validDictionaryFile(const QString &filename); 00040 bool validQuery(const DictQuery &query); 00041 00042 virtual void loadSettings(KConfigSkeleton *); 00043 QMap<QString,QString> displayOptions() const; 00044 00045 protected: 00046 virtual inline Entry *makeEntry(QString x) {return new EntryKanjidic(getName(),x);} 00047 00048 static QStringList *displayFields; 00049 friend class EntryKanjidic; 00050 }; 00051 00052 #endif
KDE 4.2 API Reference