listewidget.h

00001 /***************************************************************************
00002                             listewidget.h -  description
00003                              -------------------
00004     begin                : dim mar 12 2006
00005     copyright            : (C) 2006 by 
00006             - Sylvain Archenault <sylvain.archenault@laposte.net>
00007             - Yves Houpert <yves.houpert@insa-rouen.fr>
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 #ifndef LISTEWIDGET_H
00020 #define LISTEWIDGET_H
00021 
00022 #include <ListeWidget.h>
00023 #include <memory>
00024 class KernelMessenger;
00025 
00026 class Contact;
00027 
00035 class ListeWidget : public Form1
00036 {
00037   Q_OBJECT
00038 
00039 public:
00045   ListeWidget(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00046 
00048   ~ListeWidget();
00049 
00054   bool removeContact(const int id);
00055 
00058   void addContact(const Contact* pContact);
00059 
00066   void setEnabled(const bool bEnable);
00067 
00069   bool isEnabled() const {return m_bIsEnabled; }
00070 
00072   void removeAllContacts();
00073 
00075   void setState(int state);
00076 
00081   void updateContactList();
00082     void setPseudo(const std::string& pseudo);
00083 
00084 private: //private members
00089   bool m_bIsEnabled;
00090 
00094   std::auto_ptr<KernelMessenger> m_pKernel;
00095 
00101   int m_iCurrentItem;
00102 
00103 private slots:
00106   void statut_activated(int index);
00107 
00109   void fileExit();
00110 
00112   void AProposActivated();
00113 };
00114 
00115 #endif
00116 

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