kaddressbook
KAB::SearchManager Class Reference
#include <searchmanager.h>
Inheritance diagram for KAB::SearchManager:

Detailed Description
Definition at line 35 of file searchmanager.h.
Public Types | |
| enum | Type { StartsWith, EndsWith, Contains, Equals } |
Public Slots | |
| void | reload () |
Signals | |
| void | contactsUpdated () |
Public Member Functions | |
| KABC::Addressee::List | contacts () const |
| QStringList | distributionListNames () const |
| KPIM::DistributionList::List | distributionLists () const |
| void | search (const QString &pattern, const KABC::Field::List &fields, Type type=Contains) |
| SearchManager (KABC::AddressBook *ab, QObject *parent, const char *name=0) | |
| void | setSelectedDistributionList (const QString &name) |
Member Enumeration Documentation
Constructor & Destructor Documentation
| SearchManager::SearchManager | ( | KABC::AddressBook * | ab, | |
| QObject * | parent, | |||
| const char * | name = 0 | |||
| ) |
Definition at line 31 of file searchmanager.cpp.
Member Function Documentation
| KABC::Addressee::List SearchManager::contacts | ( | ) | const |
Returns the contacts which matched the last search query.
Definition at line 149 of file searchmanager.cpp.
| void KAB::SearchManager::contactsUpdated | ( | ) | [signal] |
Emitted whenever the contacts have changed.
| QStringList KAB::SearchManager::distributionListNames | ( | ) | const |
| KPIM::DistributionList::List KAB::SearchManager::distributionLists | ( | ) | const |
| void SearchManager::reload | ( | ) | [slot] |
Definition at line 154 of file searchmanager.cpp.
| 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 38 of file searchmanager.cpp.
| void KAB::SearchManager::setSelectedDistributionList | ( | const QString & | name | ) |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference