kiten/lib
dictFileDeinflect Class Reference
#include <dictFileDeinflect.h>

Detailed Description
Definition at line 32 of file dictFileDeinflect.h.
Public Member Functions | |
| dictFileDeinflect () | |
| EntryList * | doSearch (const DictQuery &query) |
| QStringList | listDictDisplayOptions (QStringList orig) const |
| bool | loadDictionary (const QString &file, const QString &name) |
| bool | validDictionaryFile (const QString &filename) |
| bool | validQuery (const DictQuery &query) |
Constructor & Destructor Documentation
| dictFileDeinflect::dictFileDeinflect | ( | ) |
Definition at line 46 of file dictFileDeinflect.cpp.
Member Function Documentation
This actually conducts the search on the given query.
This is usually most of the work
- Parameters:
-
query the DictQuery that specifies what results to return
Implements dictFile.
Definition at line 129 of file dictFileDeinflect.cpp.
| QStringList dictFileDeinflect::listDictDisplayOptions | ( | QStringList | ) | const [virtual] |
Return a list of the fields that can be displayed, note the following should probably always be retured: --NewLine--, Word/Kanji, Meaning, Reading.
This function is passed a list originally containing those four items. This function is used to enumerate possible types the user chooses to have displayed in the preferences dialog box. This will often be a very similer list to getSearchableAttributes(), but due to optional forms of spelling and other situations, it may not be exactly the same. Note: The "Dictionary" option will be appended to your list at the end
Implements dictFile.
Definition at line 48 of file dictFileDeinflect.cpp.
Load a dictionary as at system startup.
- Parameters:
-
file the file to open, in a format suitable for use with QFile::setFileName() name the name of the file to open, used in various user-interface aspects. It May be related to the file parameter, but perhaps not.
Implements dictFile.
Definition at line 58 of file dictFileDeinflect.cpp.
| bool dictFileDeinflect::validDictionaryFile | ( | const QString & | filename | ) | [virtual] |
This method allows the user to test if a dictionary is the proper type for this format.
This process is allowed to take some time, but nonetheless you should find checking the format of a few hundred entries sufficient for this.
- Parameters:
-
filename the name of the file, suitable for using with QFile::setFileName()
Implements dictFile.
Definition at line 51 of file dictFileDeinflect.cpp.
| bool dictFileDeinflect::validQuery | ( | const DictQuery & | query | ) | [virtual] |
Is this query relevant to this dictionary type? Usually this will return true, unless the query specifies extended attributes that the dictionary does not provide.
- Parameters:
-
query the query to examine for relevence to this dictionary type
Implements dictFile.
Definition at line 54 of file dictFileDeinflect.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference