00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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