kiten/lib
entrylist.cpp
Go to the documentation of this file.
QList< T > & operator=(const QList< T > &other)
Definition: dictquery.h:329
The Entry class is a generic base class for each particular entry in a given dictionary.
Definition: entry.h:44
int count() const
QString toHTML() const
Convert every element of the EntryList to a QString in HTML form and return it.
Definition: entrylist.cpp:230
const T & at(int i) const
void sort(QStringList &sortOrder, QStringList &dictionaryOrder)
Sort the list according to the given fields in sortOrder, if dictionaryOrder is blank, don't order the list by dictionary, otherwise items are sorted by dictionary then by sortOrder aspects.
Definition: entrylist.cpp:271
QString toString() const
Convert every element of the EntryList to a QString and return it.
Definition: entrylist.cpp:266
int size() const
QString number(int n, int base)
void append(const T &value)
Definition: entryedict.h:60
bool isEmpty() const
virtual QString toHTML() const
An entry should be able to generate a representation of itself in (valid) HTML.
Definition: entry.cpp:384
const EntryList & operator+=(const EntryList &other)
Append another EntryList onto this one.
Definition: entrylist.cpp:284
void appendList(const EntryList *other)
Append another EntryList onto this one.
Definition: entrylist.cpp:306
iterator end()
T takeFirst()
virtual bool sort(const Entry &that, const QStringList &dictionaryList, const QStringList &fieldList) const
An overrideable sorting function, similer to operator< in most contexts The default version will sort...
Definition: entry.cpp:425
A class to allow users of libkiten to properly setup a database query.
Definition: dictquery.h:89
const EntryList & operator=(const EntryList &other)
Copy an entry list.
Definition: entrylist.cpp:298
QString toKVTML(unsigned int start, unsigned int length) const
Convert the entire list to KVTML for export to a flashcard app.
Definition: entrylist.cpp:200
virtual QString toString() const
This will return a pure text interpretation of the Entry.
Definition: entry.cpp:413
const QString & getDictName() const
Get the dictionary name that generated this Entry.
Definition: entry.cpp:91
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
iterator begin()
EntryList is a simple container for Entry objects, and is-a QList A few simple overrides allo...
Definition: entrylist.h:38
DictQuery getQuery() const
Get the query that generated this list, note that if you have appended EntryLists from two different ...
Definition: entrylist.cpp:323
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.