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 --- components/chatinputindicator.hpp | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 components/chatinputindicator.hpp (limited to 'components/chatinputindicator.hpp') diff --git a/components/chatinputindicator.hpp b/components/chatinputindicator.hpp deleted file mode 100644 index ec70dfb..0000000 --- a/components/chatinputindicator.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once -#include -#include -#include "discord/message.hpp" -#include "discord/user.hpp" - -class ChatInputIndicator : public Gtk::Box { -public: - ChatInputIndicator(); - void SetActiveChannel(Snowflake id); - void SetCustomMarkup(const Glib::ustring &str); - void ClearCustom(); - -private: - void AddUser(Snowflake channel_id, const UserData &user, int timeout); - void OnUserTypingStart(Snowflake user_id, Snowflake channel_id); - void OnMessageCreate(const Message &message); - void SetTypingString(const Glib::ustring &str); - void ComputeTypingString(); - - Gtk::Image m_img; - Gtk::Label m_label; - - Glib::ustring m_custom_markup; - - Snowflake m_active_channel; - std::unordered_map> m_typers; // channel id -> [user id -> connection] -}; -- cgit v1.2.3