diff options
Diffstat (limited to 'windows/pinnedwindow.hpp')
-rw-r--r-- | windows/pinnedwindow.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/windows/pinnedwindow.hpp b/windows/pinnedwindow.hpp new file mode 100644 index 0000000..a118876 --- /dev/null +++ b/windows/pinnedwindow.hpp @@ -0,0 +1,20 @@ +#pragma once +#include <gtkmm.h> +#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 FetchPinned(); + void OnFetchedPinned(const std::vector<Message> &msgs, DiscordError code); + + ChatList m_chat; +}; |