kiten/lib
entryEdict.h
Go to the documentation of this file.00001 /* This file is part of Kiten, a KDE Japanese Reference Tool... 00002 Copyright (C) 2006 Joseph Kerian <jkerian@gmail.com> 00003 (C) 2006 Eric Kjeldergaard <kjelderg@gmail.com> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef KITEN_ENTRYEDICT_H 00022 #define KITEN_ENTRYEDICT_H 00023 00024 #include "Entry.h" 00025 #include <QtCore/QHash> 00026 #include <QtCore/QList> 00027 00028 class QString; 00029 class EDICT_formatting; 00030 00031 class /* NO_EXPORT */ EntryEDICT : public Entry { 00032 public: 00033 // EntryEDICT(const EntryEDICT &x) : Entry(x) {} //No special members to copy in this one 00034 EntryEDICT(const QString &dict); 00035 EntryEDICT(const QString &dict, const QString &entry); 00036 Entry *clone() const; 00037 00038 virtual QString toHTML() const; 00039 00040 virtual bool loadEntry(const QString &); 00041 virtual QString dumpEntry() const; 00042 00043 virtual QString HTMLWord() const; 00044 virtual QString Common() const; 00045 00046 protected: 00047 virtual QString kanjiLinkify(const QString &) const; 00048 00049 private: 00050 //Field of Application goes into the hash 00051 QList<QString> m_typeList; 00052 QList<QString> m_miscMarkings; 00053 00054 /* This "private static class" provides various pieces of information 00055 * about the EDICT format that we need to parse it properly. */ 00056 static const EDICT_formatting &format(); 00057 static EDICT_formatting *m_format; 00058 }; 00059 00060 #endif
KDE 4.2 API Reference