kiten/lib
dictfile.h
Go to the documentation of this file.
121 virtual DictionaryPreferenceDialog *preferencesWidget( KConfigSkeleton *config, QWidget *parent = NULL )
This abstract base class specifies the interface for dictionary preference dialogs in user applicatio...
Definition: dictionarypreferencedialog.h:42
The Entry class is a generic base class for each particular entry in a given dictionary.
Definition: entry.h:44
virtual bool validQuery(const DictQuery &query)=0
Is this query relevant to this dictionary type? Usually this will return true, unless the query speci...
virtual QString getFile() const
Returns the file that this is working with, usually used in the preferences display.
Definition: dictfile.h:140
DictFile(const QString &dictionaryTypeName)
Use this constructor for your subclasses.
Definition: dictfile.h:59
virtual const QMap< QString, QString > & getSearchableAttributes() const
Fetch a list of searchable attributes and their codes.
Definition: dictfile.h:144
QString m_dictionaryName
Name is the 'primary key' of the list of dictionaries.
Definition: dictfile.h:152
virtual bool loadNewDictionary(const QString &file, const QString &name)
Load a new dictionary.
Definition: dictfile.h:100
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
virtual void loadSettings(KConfigSkeleton *)
Load information from the KConfigSkeleton that you've setup in the above preferences widget...
Definition: dictfile.h:127
virtual bool loadDictionary(const QString &file, const QString &name)=0
Load a dictionary as at system startup.
virtual QString getType() const
Returns the type of files this dictFile object deals with.
Definition: dictfile.h:136
virtual bool validDictionaryFile(const QString &filename)=0
This method allows the user to test if a dictionary is the proper type for this format.
virtual QStringList listDictDisplayOptions(QStringList) const =0
Return a list of the fields that can be displayed, note the following should probably always be retur...
virtual EntryList * doSearch(const DictQuery &query)=0
This actually conducts the search on the given query.
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
virtual DictionaryPreferenceDialog * preferencesWidget(KConfigSkeleton *config, QWidget *parent=NULL)
If you want your own dialog to pick preferences for your dict, then override this.
Definition: dictfile.h:121
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
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.