24 #ifndef SEARCHMANAGER_H
25 #define SEARCHMANAGER_H
30 #include <kabc/stdaddressbook.h>
31 #ifdef KDEPIM_NEW_DISTRLISTS
32 #include <libkdepim/distributionlist.h>
37 class SearchManager : public TQObject
50 SearchManager( KABC::AddressBook *ab,
51 TQObject *parent, const char *name = 0 );
62 void search( const TQString &pattern, const KABC::Field::List &fields, Type type = Contains );
67 KABC::Addressee::List contacts() const;
70 #ifdef KDEPIM_NEW_DISTRLISTS
74 void setSelectedDistributionList( const TQString &name );
79 KPIM::DistributionList::List distributionLists() const;
84 TQStringList distributionListNames() const;
91 void contactsUpdated();
97 KABC::Addressee::List mContacts;
98 #ifdef KDEPIM_NEW_DISTRLISTS
99 TQString mSelectedDistributionList;
100 KPIM::DistributionList::List mDistributionLists;
102 KABC::AddressBook *mAddressBook;
105 KABC::Field::List mFields;
|