blob: e30c05ec116db77b71a0e0e808c1e4ea3755b17d [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"
#include <sync-app-socket.h>
#include <sync-logic.h>
#include <sync-seq-no.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<Sync::MissingDataInfo> &, Sync::SyncAppSocket *);
private:
void formChatMessage(const QString &text, SyncDemo::ChatMessage &msg);
private slots:
void returnPressed();
void buttonPressed();
private:
QString m_nick;
QString m_chatroom;
QString m_prefix;
Sync::SyncAppSocket *m_sock;
};
#endif