From a51a54bc5979a2491f152abc47ad54e6b63f27c8 Mon Sep 17 00:00:00 2001 From: Dylam De La Torre Date: Tue, 23 Nov 2021 05:21:56 +0100 Subject: Restructure source and resource files (#46) importantly, res is now res/res and css is now res/css --- src/windows/pinnedwindow.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/windows/pinnedwindow.hpp (limited to 'src/windows/pinnedwindow.hpp') diff --git a/src/windows/pinnedwindow.hpp b/src/windows/pinnedwindow.hpp new file mode 100644 index 0000000..cf2ec3c --- /dev/null +++ b/src/windows/pinnedwindow.hpp @@ -0,0 +1,22 @@ +#pragma once +#include +#include "discord/errors.hpp" +#include "discord/channel.hpp" +#include "discord/message.hpp" +#include "components/chatlist.hpp" + +class PinnedWindow : public Gtk::Window { +public: + PinnedWindow(const ChannelData &data); + + Snowflake GuildID; + Snowflake ChannelID; + +private: + void OnMessagePinned(const Message &msg); + void OnMessageUnpinned(const Message &msg); + void FetchPinned(); + void OnFetchedPinned(const std::vector &msgs, DiscordError code); + + ChatList m_chat; +}; -- cgit v1.2.3