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 37 of file kmailcompletion.h.
Public Member Functions | |
| void | addItemWithKeys (const QString &email, int weight, const QStringList *keyWords) |
| virtual void | clear () |
| KMailCompletion () | |
| QString | makeCompletion (const QString &string) |
| virtual void | postProcessMatches (QStringList *pMatches) const |
Constructor & Destructor Documentation
| KMailCompletion::KMailCompletion | ( | ) |
Definition at line 28 of file kmailcompletion.cpp.
Member Function Documentation
| 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 79 of file kmailcompletion.cpp.
| void KMailCompletion::clear | ( | ) | [virtual] |
clears internal keyword map and calls KCompletion::clear.
Definition at line 33 of file kmailcompletion.cpp.
uses KCompletion::makeCompletion to find email addresses which starts with string.
ignores keywords.
- Returns:
- email address
Definition at line 39 of file kmailcompletion.cpp.
| void KMailCompletion::postProcessMatches | ( | QStringList * | pMatches | ) | const [virtual] |
use internal map to replace all keywords in pMatches with corresponding email addresses.
Definition at line 92 of file kmailcompletion.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference