contactlistview.h

00001 /***************************************************************************
00002                           contactlistview.h  -  description
00003                              -------------------
00004     begin                : mar avr 11 2006
00005     copyright            : (C) 2006 by Sylvain Archenault <sylvain.archenault@laposte.net>, \n Yves Houpert <yves.houpert@insa-rouen.fr> <>
00006  
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef CONTACTLISTVIEW_H
00018 #define CONTACTLISTVIEW_H
00019 
00020 #include <klistview.h>
00021 
00022 class Contact;
00023 class ContactListItem;
00024 class QPopupMenu;
00025 class ContactItemTooltip;
00026 
00032 class ContactListView : public KListView
00033 {
00034   Q_OBJECT
00035 public:
00039   ContactListView(QWidget *parent = 0, const char *name = 0);
00040 
00042   ~ContactListView();
00043 
00046   void addContact(const Contact* pContact);
00047 
00051   bool removeContact(const int id);
00052 
00054   void removeAllContacts();
00055 
00056 private: //private members
00058   ContactListItem* m_pRootNode;
00059 
00061   QPopupMenu* m_pContactMenu;
00062 
00064   ContactItemTooltip* m_pToolTip;
00065 
00066 private slots: //private slots.
00071   void listDoubleClicked(QListViewItem* pItem, const QPoint& point, int column);
00072 
00077   void listMenuRequested(QListViewItem* pItem, const QPoint& point, int column);
00078 
00080   void startDiscussion();
00081 
00083   void deleteContact();
00084 
00086   void addContact();
00087 };
00088 
00089 #endif

Generated on Fri May 19 12:15:54 2006 for Bamboo Ch@t by  doxygen 1.4.6