KPIM::KMailCompletion Class Reference

#include <kmailcompletion.h>

Inherits TDECompletion.

Public Member Functions

virtual void clear ()
 
TQString makeCompletion (const TQString &string)
 
void addItemWithKeys (const TQString &email, int weight, const TQStringList *keyWords)
 
virtual void postProcessMatches (TQStringList *pMatches) const
 

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.

Member Function Documentation

◆ addItemWithKeys()

void KMailCompletion::addItemWithKeys ( const TQString &  email,
int  weight,
const TQStringList *  keyWords 
)

Specify keywords for email.

Items may be added with TDECompletion::addItem, those will only be returned as match if they are in one of these formats:

  • contains localpart@domain
  • contains <email> or if they have also been added with this function.

Definition at line 75 of file kmailcompletion.cpp.

◆ clear()

void KMailCompletion::clear ( )
virtual

Clears internal keyword map and calls TDECompletion::clear.

Definition at line 34 of file kmailcompletion.cpp.

◆ makeCompletion()

TQString KMailCompletion::makeCompletion ( const TQString &  string)

Uses TDECompletion::makeCompletion to find email addresses which starts with string.

ignores keywords.

Returns
email address

Definition at line 40 of file kmailcompletion.cpp.

◆ postProcessMatches()

void KMailCompletion::postProcessMatches ( TQStringList *  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: