libkdepim
#include <kmailcompletion.h>
Public Member Functions | |
KMailCompletion () | |
void | addItemWithKeys (const QString &email, int weight, const QStringList *keyWords) |
virtual void | clear () |
QString | makeCompletion (const QString &string) |
virtual void | postProcessMatches (QStringList *pMatches) const |
Detailed Description
KMailCompletion allows lookup of email addresses by keyword.
This is used for lookup by nickname, since we don't want the nickname to appear in the final email. E.g. you have a nickname "idiot" for your boss, you want to type "idiot" but you want the completion to offer "Full Name <email@domain>", without the nickname being visible.
Definition at line 39 of file kmailcompletion.h.
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.
|
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.
|
virtual |
use internal map to replace all keywords in pMatches with corresponding email addresses.
Definition at line 93 of file kmailcompletion.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.