chatwidget.h 473 Bytes
#ifndef CHATWIDGET_H
#define CHATWIDGET_H

#include <QTextEdit>
#include <QFileDialog>
#include <QFile>
#include <QTextStream>

using namespace std;

class ChatWidget : public QTextEdit
{
    Q_OBJECT
public:
    explicit ChatWidget(QWidget *parent = 0);
    void printMsg(const string& str);
    void printServerMsg(const string &str);
    void printStatusMsg(const string& str);
    
signals:
    
public slots:
    void saveChatToFile();
    
};

#endif // CHATWIDGET_H