blob: b4c4b245e45b40a8f7c6b72803065fb0c799b2c2 [file] [log] [blame]
#ifndef CHATDIALOG_H
#define CHATDIALOG_H
#include <boost/function.hpp>
#include <vector>
#include "digesttreescene.h"
#include "ui_chatdialog.h"
#include "chatbuf.pb.h"
class ChatDialog : public QDialog, private Ui::ChatDialog
{
Q_OBJECT
public:
ChatDialog(QWidget *parent = 0);
void appendMessage(const SyncDemo::ChatMessage &msg);
void processData(const std::vector<MisingDataInfo> &, SyncAppSocket *);
private:
void formChatMessage(const QString &text, SyncDemo::ChatMessage &msg);
private slots:
void returnPressed();
private:
QString m_nick;
QString m_chatroom;
QString m_prefix;
Sync::SyncAppSocket *m_sock;
};
#endif