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

kaddressbook

KAB::SearchManager

KAB::SearchManager Class Reference

#include <searchmanager.h>

Inheritance diagram for KAB::SearchManager:

Inheritance graph
[legend]

List of all members.


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

enum KAB::SearchManager::Type

Enumerator:
StartsWith 
EndsWith 
Contains 
Equals 

Definition at line 40 of file searchmanager.h.


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

Returns the name of all the distribution lists.

Definition at line 172 of file searchmanager.cpp.

KPIM::DistributionList::List KAB::SearchManager::distributionLists (  )  const

Returns all the distribution lists.

Definition at line 167 of file searchmanager.cpp.

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  ) 

sets the distribution list to be shown

Definition at line 159 of file searchmanager.cpp.


The documentation for this class was generated from the following files:
  • searchmanager.h
  • searchmanager.cpp

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • 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
  • 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