ldapsearchdialogimpl.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef LDAPSEARCHDIALOGIMPL_H
00022 #define LDAPSEARCHDIALOGIMPL_H
00023
00024 #include <qptrlist.h>
00025
00026 #include <kabc/addressbook.h>
00027 #include <kabc/ldapclient.h>
00028
00029 #include "ldapsearchdialog.h"
00030
00031 class KAddressBookTableView;
00032
00033 class LDAPSearchDialogImpl : public LDAPSearchDialog
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 LDAPSearchDialogImpl( KABC::AddressBook *ab, QWidget* parent, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00039 ~LDAPSearchDialogImpl();
00040 bool isOK() const { return mIsOK; }
00041
00042 void rereadConfig();
00043
00044 signals:
00045 void addresseesAdded();
00046
00047 protected slots:
00048 void slotAddResult( const KABC::LdapObject& obj );
00049 void slotSetScope( bool rec );
00050 void slotStartSearch();
00051 void slotStopSearch();
00052 void slotSearchDone();
00053 void slotAddSelectedContacts();
00054 void slotSendMail();
00055 void slotError( const QString& );
00056 void slotSelectAll();
00057 void slotUnSelectAll();
00058
00059 protected:
00060 QString selectedEMails() const;
00061
00062 virtual void closeEvent( QCloseEvent* );
00063
00064 private:
00065 QString makeFilter( const QString& query, const QString& attr );
00066
00067 void cancelQuery();
00068
00069 int mNumHosts;
00070 QPtrList<KABC::LdapClient> mLdapClientList;
00071 bool mIsOK;
00072 KABC::AddressBook *mAddressBook;
00073 };
00074
00075 #endif // LDAPSEARCHDIALOGIMPL_H
This file is part of the documentation for kdelibs Version 3.1.4.