kaddressbook Library API Documentation

ldapsearchdialogimpl.h

00001 /* ldapsearchdialogimpl.h - LDAP access
00002  *      Copyright (C) 2002 Klarälvdalens Datakonsult AB
00003  *
00004  *      Author: Steffen Hansen <hansen@kde.org>
00005  *
00006  * This file is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This file is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
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
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:09 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001