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 <ldapclient.h>
00027 #include <kdialogbase.h>
00028
00029 class KComboBox;
00030 class KLineEdit;
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 QString selectedEMails() const;
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
00066 protected:
00067
00068 virtual void closeEvent( QCloseEvent* );
00069
00070 private:
00071 void saveSettings();
00072
00073 QString makeFilter( const QString& query, const QString& attr, bool startsWith );
00074
00075 void cancelQuery();
00076
00077 int mNumHosts;
00078 QPtrList<KPIM::LdapClient> mLdapClientList;
00079 bool mIsOK;
00080 KComboBox* mFilterCombo;
00081 KComboBox* mSearchType;
00082 KLineEdit* mSearchEdit;
00083
00084 QCheckBox* mRecursiveCheckbox;
00085 QListView* mResultListView;
00086 QPushButton* mSearchButton;
00087 };
00088
00089
00090 }
00091 #endif
This file is part of the documentation for libkdepim Library Version 3.3.2.