Able to send and receive messages, server panicking and not relaying userids yet
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "logic/client_reactor.h"
|
||||
#include "messages.pb.h"
|
||||
#include "models/chatroom.h"
|
||||
#include <QMainWindow>
|
||||
#include <memory>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
@@ -17,9 +20,12 @@ public:
|
||||
~MainWindow();
|
||||
|
||||
private:
|
||||
void sendMsg(const QString &);
|
||||
|
||||
Ui::MainWindow *ui;
|
||||
Chatroom m_chatroom;
|
||||
std::unique_ptr<Reactor> m_reactor;
|
||||
|
||||
public slots:
|
||||
void receiveMsg(QString &);
|
||||
void receiveMsg(const chat::chatMsg &);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user