kaddressbook

KAB::SearchManager Class Reference

List of all members.

Detailed Description

Definition at line 37 of file searchmanager.h.


Public Types

enum  Type { StartsWith, EndsWith, Contains, Equals }

Public Slots

void reload ()

Signals

void contactsUpdated ()

Public Member Functions

 SearchManager (KABC::AddressBook *ab, QObject *parent, const char *name=0)
void search (const QString &pattern, const KABC::Field::List &fields, Type type=Contains)
KABC::Addressee::List contacts () const

Member Function Documentation

void SearchManager::search ( const QString &  pattern,
const KABC::Field::List &  fields,
Type  type = Contains 
)

This method takes a pattern and searches for a match of the specified field of all available contacts.

The result is propagated via contactsUpdated().

Parameters:
pattern The search string.
field The field which shall be compared with the search string.
type The type for the matching.

Definition at line 37 of file searchmanager.cpp.

KABC::Addressee::List SearchManager::contacts (  )  const

Returns the contacts which matched the last search query.

Definition at line 113 of file searchmanager.cpp.

void KAB::SearchManager::contactsUpdated (  )  [signal]

Emitted whenever the contacts have changed.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys