kaddressbook Library API Documentation

kaddressbooktableview.h

00001 /* 00002 This file is part of KAddressBook. 00003 Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 00019 As a special exception, permission is given to link this program 00020 with any edition of Qt, and distribute the resulting executable, 00021 without including the source code for Qt in the source distribution. 00022 */ 00023 00024 #ifndef KADDRESSBOOKTABLEVIEW_H 00025 #define KADDRESSBOOKTABLEVIEW_H 00026 00027 #ifdef HAVE_CONFIG_H 00028 #include <config.h> 00029 #endif 00030 00031 #include <qwidget.h> 00032 #include <qlistview.h> 00033 #include <qstring.h> 00034 #include <qdialog.h> 00035 #include <qtabdialog.h> 00036 #include <qstringlist.h> 00037 #include <qvaluelist.h> 00038 00039 #include "undo.h" 00040 #include "kaddressbookview.h" 00041 00042 class QListViewItem; 00043 class QListBox; 00044 class QVBoxLayout; 00045 class KConfig; 00046 00047 class ContactListViewItem; 00048 class ContactListView; 00049 00050 namespace KABC { class AddressBook; } 00051 00060 class KAddressBookTableView : public KAddressBookView 00061 { 00062 friend class ContactListView; 00063 00064 Q_OBJECT 00065 00066 public: 00067 KAddressBookTableView( KAB::Core *core, QWidget *parent, 00068 const char *name = 0 ); 00069 virtual ~KAddressBookTableView(); 00070 00071 virtual void refresh(QString uid = QString::null); 00072 virtual QStringList selectedUids(); 00073 virtual void setSelected(QString uid = QString::null, bool selected = false); 00074 virtual KABC::Field *sortField() const; 00075 00076 virtual void readConfig(KConfig *config); 00077 virtual void writeConfig(KConfig *config); 00078 virtual QString type() const { return "Table"; } 00079 00080 public slots: 00081 virtual void reconstructListView(); 00082 00083 protected slots: 00087 void addresseeSelected(); 00088 00093 void addresseeExecuted(QListViewItem*); 00094 00098 void rmbClicked( KListView*, QListViewItem*, const QPoint& ); 00099 00100 private: 00101 QVBoxLayout *mainLayout; 00102 ContactListView *mListView; 00103 }; 00104 00105 #endif
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:08 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003