From 5fab9a3a2cf048330f687dda48c76c95a3a67d98 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 9 Nov 2018 09:46:43 +0100 Subject: Add room joining --- include/RoomNotificationsWindow.hpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 include/RoomNotificationsWindow.hpp (limited to 'include/RoomNotificationsWindow.hpp') diff --git a/include/RoomNotificationsWindow.hpp b/include/RoomNotificationsWindow.hpp new file mode 100644 index 0000000..e4e29f5 --- /dev/null +++ b/include/RoomNotificationsWindow.hpp @@ -0,0 +1,36 @@ +#pragma once + +#include +#include +#include +#include +#include + +namespace dchat +{ + class ChatWindow; + + class RoomNotificationsWindow : public Gtk::Stack + { + public: + RoomNotificationsWindow(ChatWindow *chatWindow); + + void addInviteRequest(const InviteUserRequest &request); + private: + class RoomNotifications : public Gtk::ScrolledWindow + { + public: + Glib::RefPtr listStore; + Gtk::TreeModelColumn userPublicKeyColumn; + Gtk::TreeModelColumn messageColumn; + Gtk::TreeModel::ColumnRecord columns; + std::unordered_map inviteRequests; + }; + + RoomNotifications* createRoomNotifications(); + + std::unordered_map roomNotificationsMap; + + ChatWindow *chatWindow; + }; +} \ No newline at end of file -- cgit v1.2.3