From 8089e8e88fb145b4b954c310a0eda2ec647259cd Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 27 Oct 2018 01:47:08 +0200 Subject: Add users, nickname change, messages now have author --- include/ChatMessage.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/ChatMessage.hpp') diff --git a/include/ChatMessage.hpp b/include/ChatMessage.hpp index 0547557..271aa5f 100644 --- a/include/ChatMessage.hpp +++ b/include/ChatMessage.hpp @@ -1,16 +1,20 @@ #pragma once +#include "types.hpp" #include #include namespace dchat { + class User; class ChatMessage : public Gtk::Grid { public: - ChatMessage(const Glib::ustring &username, const Glib::ustring &text); + ChatMessage(const Glib::ustring &username, const Glib::ustring &text, uint32_t timestampSeconds, const User *user); Gtk::Label username; Gtk::Label text; + uint32_t timestampSeconds; + const User *user; }; } \ No newline at end of file -- cgit v1.2.3