libkdepim
KPIM::KMailCompletion Class Reference
#include <kmailcompletion.h>
Detailed Description
KMailCompletion allows lookup of email addresses by keyword.Typically a keywods would be firstname, lastname, nickname or domain.
Definition at line 36 of file kmailcompletion.h.
Public Member Functions | |
KMailCompletion () | |
virtual void | clear () |
QString | makeCompletion (const QString &string) |
void | addItemWithKeys (const QString &email, int weight, const QStringList *keyWords) |
virtual void | postProcessMatches (QStringList *pMatches) const |
Member Function Documentation
void KMailCompletion::clear | ( | ) | [virtual] |
Clears internal keyword map and calls KCompletion::clear.
Definition at line 34 of file kmailcompletion.cpp.
QString KMailCompletion::makeCompletion | ( | const QString & | string | ) |
Uses KCompletion::makeCompletion to find email addresses which starts with string.
ignores keywords.
- Returns:
- email address
Definition at line 40 of file kmailcompletion.cpp.
void KMailCompletion::addItemWithKeys | ( | const QString & | email, | |
int | weight, | |||
const QStringList * | keyWords | |||
) |
Specify keywords for email.
Items may be added with KCompletion::addItem, those will only be returned as match if they are in one of these formats:
- contains localpart
- contains <email> or if they have also been added with this function.
Definition at line 75 of file kmailcompletion.cpp.
void KMailCompletion::postProcessMatches | ( | QStringList * | pMatches | ) | const [virtual] |
Uses an internal map to replace all keywords in pMatches whith corrsesponding email addresses.
Definition at line 86 of file kmailcompletion.cpp.
The documentation for this class was generated from the following files: