libkdepim
ldapsearchdialog.h00001
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 <ldapclient.h>
00027 #include <kdialogbase.h>
00028 #include <klineedit.h>
00029
00030 class KComboBox;
00031
00032 class QCheckBox;
00033 class QListView;
00034 class QPushButton;
00035
00036 namespace KPIM {
00037
00038 class LDAPSearchDialog : public KDialogBase
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 LDAPSearchDialog( QWidget* parent, const char* name = 0 );
00044 ~LDAPSearchDialog();
00045
00046 bool isOK() const { return mIsOK; }
00047
00048 void restoreSettings();
00049
00050 void setSearchText( const QString &text ) { mSearchEdit->setText( text ); }
00051 QString selectedEMails() const;
00052 signals:
00053 void addresseesAdded();
00054
00055 protected slots:
00056 void slotAddResult( const KPIM::LdapObject& obj );
00057 void slotSetScope( bool rec );
00058 void slotStartSearch();
00059 void slotStopSearch();
00060 void slotSearchDone();
00061 void slotError( const QString& );
00062 virtual void slotHelp();
00063 virtual void slotUser1();
00064 virtual void slotUser2();
00065 virtual void slotUser3();
00066
00067 protected:
00068
00069 virtual void closeEvent( QCloseEvent* );
00070
00071 private:
00072 void saveSettings();
00073
00074 QString makeFilter( const QString& query, const QString& attr, bool startsWith );
00075
00076 void cancelQuery();
00077
00078 int mNumHosts;
00079 QPtrList<KPIM::LdapClient> mLdapClientList;
00080 bool mIsOK;
00081 KComboBox* mFilterCombo;
00082 KComboBox* mSearchType;
00083 KLineEdit* mSearchEdit;
00084
00085 QCheckBox* mRecursiveCheckbox;
00086 QListView* mResultListView;
00087 QPushButton* mSearchButton;
00088 };
00089
00090
00091 }
00092 #endif
|