kiten/lib
Go to the documentation of this file.
29 #include <QStringList>
46 friend class EntryListModel;
66 Entry(
const QString &sourceDictionary );
74 Entry(
const QString &sourceDictionary,
const QString &word,
75 const QStringList &readings,
const QStringList &meanings );
85 virtual Entry *clone()
const = 0;
93 virtual bool matchesQuery(
const DictQuery& )
const;
98 const QString &getDictName()
const;
102 virtual QString getDictionaryType()
const = 0;
107 QString getWord()
const;
111 QString getMeanings()
const;
115 QStringList getMeaningsList()
const;
119 QString getReadings()
const;
123 QStringList getReadingsList()
const;
127 const QHash<QString,QString> &getExtendedInfo()
const;
132 QString getExtendedInfoItem(
const QString &x )
const;
139 virtual bool extendedItemCheck(
const QString &key,
const QString &value )
const;
144 virtual QString toHTML()
const;
148 virtual QString toKVTML()
const;
152 virtual QString toString()
const;
159 virtual bool loadEntry(
const QString& ) = 0;
163 virtual QString dumpEntry()
const = 0;
176 virtual bool sort(
const Entry &that,
const QStringList &dictionaryList,
177 const QStringList &fieldList )
const;
186 virtual bool sortByField(
const Entry &that,
const QString &field )
const;
226 virtual QString makeLink(
const QString &entryString )
const;
230 virtual QString HTMLWord()
const;
234 virtual QString HTMLReadings()
const;
238 virtual QString HTMLMeanings()
const;
243 bool listMatch(
const QStringList &list,
const QStringList &test,
DictQuery::MatchType type )
const;
247 bool isKanji(
const QChar &character )
const;
The Entry class is a generic base class for each particular entry in a given dictionary.
MatchType
This enum is used to define the type of matching this query is supposed to do.
QStringList Readings
The Readings (usually kana) that match this entry.
QString Word
The Word (usually containing kanji) that matches this entry.
QStringList Meanings
The Meanings that match this entry.
A class to allow users of libkiten to properly setup a database query.
QString sourceDict
The dictionary that this entry originated at.
QHash< QString, QString > ExtendedInfo
A hash of extended information.
EntryList is a simple container for Entry objects, and is-a QList A few simple overrides allo...
QString outputListDelimiter
The delimiter for lists...
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:54 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.