ClientWidget Class Reference

Widget where the discussion takes place. More...

#include <clientwidget.h>

List of all members.

Public Member Functions

 ClientWidget (const Contact &user, const Contact &contact, QWidget *parent=0, const char *name=0, WFlags fl=0)
 Constructor.
 ~ClientWidget ()
 Destructor.
void newMessage (const std::string &message)
 Appends a new message.
void enableWidget (bool enable)
 Enable or disable widget.
void newSystemMessage (const std::string &msg, bool enable)
 Appends a new system message.

Protected Slots

virtual void envoyer_clicked ()
 Slot called when the user send a message.

Protected Member Functions

void hideEvent (QHideEvent *e)
 Overloaded method called when the widget is hidden.

Protected Attributes

Contact m_User
 Contact representing the user.
Contact m_Contact
 Contact of the discussion.
bool m_bEnable
 Stores widget state.


Detailed Description

Widget where the discussion takes place.

Author:
Sylvain Archenault <sylvain.archenault@laposte.net>

Yves Houpert <yves.houpert@insa-rouen.fr>


Constructor & Destructor Documentation

ClientWidget::ClientWidget const Contact user,
const Contact contact,
QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Constructor.

Parameters:
user Application user.
contact Contact.
parent Parent widget.
name Widget name.
fl Widget specific flags.


Member Function Documentation

void ClientWidget::enableWidget bool  enable  ) 
 

Enable or disable widget.

That is to say, if user could send new message.

Parameters:
enable true if widget should be enabled, false false otherwise.

void ClientWidget::newMessage const std::string &  message  ) 
 

Appends a new message.

Parameters:
message Message received.

void ClientWidget::newSystemMessage const std::string &  msg,
bool  enable
 

Appends a new system message.

Parameters:
msg System message.
enable true if widget should be enabled, false false otherwise.


Member Data Documentation

bool ClientWidget::m_bEnable [protected]
 

Stores widget state.

true if widget should be enabled, false. Id widget is disabled, user can't send messge.


The documentation for this class was generated from the following files:
Generated on Fri May 19 12:15:55 2006 for Bamboo Ch@t by  doxygen 1.4.6