kiten/lib
dictfilekanjidic.cpp
Go to the documentation of this file.
312 QStringList propertiesWeHandle = m_searchableAttributes.values() + m_searchableAttributes.keys();
316 for( QStringList::const_iterator it = properties.constBegin(); it != properties.constEnd(); ++it )
void setCodec(QTextCodec *codec)
bool contains(const Key &key) const
QList< T > values() const
QString readLine(qint64 maxlen)
The Entry class is a generic base class for each particular entry in a given dictionary.
Definition: entry.h:44
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString getPronunciation() const
Accessor for the Pronunciation field (generally kana)
Definition: dictquery.cpp:528
bool contains(const QString &str, Qt::CaseSensitivity cs) const
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:159
bool validDictionaryFile(const QString &filename)
Scan a potential file for the correct format, remembering to skip comment characters.
Definition: dictfilekanjidic.cpp:266
bool exists() const
void clear()
QString m_dictionaryName
Name is the 'primary key' of the list of dictionaries.
Definition: dictfile.h:152
int size() const
QStringList * loadListType(KConfigSkeletonItem *item, QStringList *list, const QMap< QString, QString > &long2short)
Definition: dictfilekanjidic.cpp:217
QList< Key > keys() const
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
void append(const T &value)
bool atEnd() const
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
bool isEmpty() const
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
T & first()
virtual Entry * makeEntry(const QString &entry)
Definition: dictfilekanjidic.cpp:256
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
bool contains(QChar ch, Qt::CaseSensitivity cs) const
virtual void close()
bool validQuery(const DictQuery &query)
Reject queries that specify anything we don't understand.
Definition: dictfilekanjidic.cpp:303
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
QTextCodec * codecForName(const QByteArray &name)
A class to allow users of libkiten to properly setup a database query.
Definition: dictquery.h:89
int length() const
iterator insert(const Key &key, const T &value)
Abstract base class, used internally by the library for handling different types of dictionaries This...
Definition: dictfile.h:47
const_iterator constEnd() const
const_iterator constBegin() const
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:165
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.