kiten/lib
dictfilekanjidic.cpp
Go to the documentation of this file.
311 QStringList propertiesWeHandle = m_searchableAttributes.values() + m_searchableAttributes.keys();
315 for( QStringList::const_iterator it = properties.constBegin(); it != properties.constEnd(); ++it )
The Entry class is a generic base class for each particular entry in a given dictionary.
Definition: entry.h:44
QString getPronunciation() const
Accessor for the Pronunciation field (generally kana)
Definition: dictquery.cpp:528
QMap< QString, QString > displayOptions() const
Definition: dictfilekanjidic.cpp:73
virtual QStringList listDictDisplayOptions(QStringList list) const
Return a list of the fields that can be displayed, note the following should probably always be retur...
Definition: dictfilekanjidic.cpp:158
bool validDictionaryFile(const QString &filename)
Scan a potential file for the correct format, remembering to skip comment characters.
Definition: dictfilekanjidic.cpp:265
QString m_dictionaryName
Name is the 'primary key' of the list of dictionaries.
Definition: dictfile.h:152
QStringList * loadListType(KConfigSkeletonItem *item, QStringList *list, const QMap< QString, QString > &long2short)
Definition: dictfilekanjidic.cpp:216
virtual EntryList * doSearch(const DictQuery &query)
This actually conducts the search on the given query.
Definition: dictfilekanjidic.cpp:104
virtual bool matchesQuery(const DictQuery &) const
Fairly important method, this tests if this particular entry matches a query.
Definition: entry.cpp:294
QString m_dictionaryFile
This is mostly a placeholder, but your class will get asked what file it is using, so either be sure to put something here, or override getFile() and respond with something that will be sensical in a dictionary selection dialog box.
Definition: dictfile.h:160
QString getMeaning() const
Accessor for the non-japanese meaning field.
Definition: dictquery.cpp:502
QString getProperty(const QString &key) const
Get a specific property by key (is the same as using operator[] const)
Definition: dictquery.cpp:440
QString getWord() const
Accessor for the Word/Kanji field (this is usually used for anything containing kanji).
Definition: dictquery.cpp:554
virtual QString getType() const
Returns the type of files this dictFile object deals with.
Definition: dictfile.h:136
virtual Entry * makeEntry(const QString &entry)
Definition: dictfilekanjidic.cpp:255
bool validQuery(const DictQuery &query)
Reject queries that specify anything we don't understand.
Definition: dictfilekanjidic.cpp:302
QMap< QString, QString > m_searchableAttributes
This allows the programming user to see a list of possible search types (probably through a drop down...
Definition: dictfile.h:178
A class to allow users of libkiten to properly setup a database query.
Definition: dictquery.h:89
Abstract base class, used internally by the library for handling different types of dictionaries This...
Definition: dictfile.h:47
EntryList is a simple container for Entry objects, and is-a QList A few simple overrides allo...
Definition: entrylist.h:38
bool loadDictionary(const QString &file, const QString &name)
Load a dictionary as at system startup.
Definition: dictfilekanjidic.cpp:164
const QList< QString > listPropertyKeys() const
Use this to get a list of all the property keys in the query.
Definition: dictquery.cpp:445
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
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.