diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-27 01:47:08 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-10-27 01:47:11 +0200 |
commit | 8089e8e88fb145b4b954c310a0eda2ec647259cd (patch) | |
tree | 2858973c86754099de4fa206001588eea0f5b5e1 /include/ChatMessage.hpp | |
parent | 206a58f9996a36693b1e73460191b08db1db0327 (diff) |
Add users, nickname change, messages now have author
Diffstat (limited to 'include/ChatMessage.hpp')
-rw-r--r-- | include/ChatMessage.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 <gtkmm/grid.h> #include <gtkmm/label.h> 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 |