ldapsearchdialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef LDAPSEARCHDIALOG_H
00022 #define LDAPSEARCHDIALOG_H
00023
00024 #include <qptrlist.h>
00025
00026 #include <kabc/addressbook.h>
00027 #include <ldapclient.h>
00028 #include <kdialogbase.h>
00029
00030 class KAddressBookTableView;
00031 class KComboBox;
00032 class KLineEdit;
00033
00034 class QCheckBox;
00035 class QListView;
00036 class QPushButton;
00037 class KABCore;
00038
00039 class LDAPSearchDialog : public KDialogBase
00040 {
00041 Q_OBJECT
00042
00043 public:
00044 LDAPSearchDialog( KABC::AddressBook *ab, KABCore *core, QWidget* parent, const char* name = 0 );
00045 ~LDAPSearchDialog();
00046
00047 bool isOK() const { return mIsOK; }
00048
00049 void restoreSettings();
00050
00051 signals:
00052 void addresseesAdded();
00053
00054 protected slots:
00055 void slotAddResult( const KPIM::LdapObject& obj );
00056 void slotSetScope( bool rec );
00057 void slotStartSearch();
00058 void slotStopSearch();
00059 void slotSearchDone();
00060 void slotError( const QString& );
00061 virtual void slotHelp();
00062 virtual void slotUser1();
00063 virtual void slotUser2();
00064 virtual void slotUser3();
00065 virtual void slotDefault();
00066
00067 protected:
00068 QString selectedEMails() const;
00069
00070 virtual void closeEvent( QCloseEvent* );
00071
00072 private:
00073 void saveSettings();
00074
00075 QString makeFilter( const QString& query, const QString& attr, bool startsWith );
00076
00077 void cancelQuery();
00078
00079 int mNumHosts;
00080 QPtrList<KPIM::LdapClient> mLdapClientList;
00081 bool mIsOK;
00082 KABC::AddressBook *mAddressBook;
00083 KABCore *mCore;
00084
00085 KComboBox* mFilterCombo;
00086 KComboBox* mSearchType;
00087 KLineEdit* mSearchEdit;
00088
00089 QCheckBox* mRecursiveCheckbox;
00090 QListView* mResultListView;
00091 QPushButton* mSearchButton;
00092 };
00093
00094 #endif
This file is part of the documentation for kaddressbook Library Version 3.3.2.