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 class KIMProxy; 00047 00048 class ContactListViewItem; 00049 class ContactListView; 00050 00051 namespace KABC { class AddressBook; } 00052 00061 class KAddressBookTableView : public KAddressBookView 00062 { 00063 friend class ContactListView; 00064 00065 Q_OBJECT 00066 00067 public: 00068 KAddressBookTableView( KAB::Core *core, QWidget *parent, 00069 const char *name = 0 ); 00070 virtual ~KAddressBookTableView(); 00071 00072 virtual void refresh(QString uid = QString::null); 00073 virtual QStringList selectedUids(); 00074 virtual void setSelected(QString uid = QString::null, bool selected = false); 00075 virtual KABC::Field *sortField() const; 00076 00077 virtual void readConfig(KConfig *config); 00078 virtual void writeConfig(KConfig *config); 00079 virtual QString type() const { return "Table"; } 00080 00081 public slots: 00082 virtual void reconstructListView(); 00083 00084 protected slots: 00088 void addresseeSelected(); 00089 00094 void addresseeExecuted(QListViewItem*); 00095 00099 void rmbClicked( KListView*, QListViewItem*, const QPoint& ); 00100 00104 void updatePresence( const QString &uid ); 00105 00106 private: 00107 QVBoxLayout *mainLayout; 00108 ContactListView *mListView; 00109 KIMProxy *mIMProxy; 00110 }; 00111 00112 #endif
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:19:05 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003