blob: 0f65426a2e90825ce549d52ab7cddca5faa9be4b [file] [log] [blame]
#ifndef CHATDIALOG_H
#define CHATDIALOG_H
#include "ui_chatdialog.h"
#include "chatbuf.pb.h"
class ChatDialog : public QDialog, private Ui::ChatDialog
{
Q_OBJECT
public:
ChatDialog(QWidget *parent = 0);
public slots:
void appendMessage(SyncDemo::ChatMessage &msg);
void updateTreeView();
private slots:
void returnPressed();
void formChatMessage(const QString &text, SyncDemo::ChatMessage &msg);
private:
QString m_nick;
QString m_chatroom;
};
#endif