clientwidget.h

00001 /***************************************************************************
00002                             clientwidget.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 CLIENTWIDGET_H
00020 #define CLIENTWIDGET_H
00021 
00022 #include <ClientWidget.h>
00023 #include <contact.h>
00029 class ClientWidget : public Form2
00030 {
00031   Q_OBJECT
00032 
00033 public:
00042   ClientWidget(const Contact& user, const Contact& contact, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00043 
00046   ~ClientWidget();
00047 
00050   void newMessage(const std::string& message);
00051 
00056   void enableWidget(bool enable);
00057 
00061   void newSystemMessage(const std::string& msg, bool enable);
00062 
00063 protected:
00065   Contact m_User;
00067   Contact m_Contact;
00072   bool m_bEnable;
00073 
00074 protected slots:
00076   virtual void envoyer_clicked();
00077 
00078 protected:
00080   void hideEvent( QHideEvent* e );
00081     
00082 };
00083 
00084 #endif
00085 

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