• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

libkdepim

KPIM::KMailCompletion

KPIM::KMailCompletion Class Reference

#include <kmailcompletion.h>

Inheritance diagram for KPIM::KMailCompletion:

Inheritance graph
[legend]

List of all members.


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.

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 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:
  • kmailcompletion.h
  • kmailcompletion.cpp

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal