00001 #ifndef GUITAB_H
00002 #define GUITAB_H
00003
00004 #include <QString>
00005 #include <QWidget>
00006 #include <QHostAddress>
00007 #include <QVBoxLayout>
00008 #include <QHBoxLayout>
00009 #include "GUIChatView.h"
00010
00014 class GUITab : public QWidget
00015 {
00016
00017 Q_OBJECT
00018 public:
00019
00020 GUIChatView *chat;
00033 GUITab(QWidget *parent, QHostAddress ip, QString label, bool can_be_closed,
00034
00035 QString sm = "red", QString um = "green", QString bc = "white", bool onLine = true);
00039 ~GUITab();
00040
00047 void setIp(QHostAddress ip);
00048
00054 QHostAddress getIp();
00055
00060 void setLabel(QString lab);
00061
00066 QString getLabel();
00067
00073 void setCBC(bool state);
00078 bool getCBC();
00079
00085 void setOnline(bool onLine);
00090 bool getOnline();
00091
00092
00093
00094 public slots:
00098 void show();
00099
00100
00101
00102 private:
00103
00104 QHostAddress ip;
00106 QString label;
00108 bool can_be_closed;
00110 bool online;
00112 };
00113
00114 #endif