summaryrefslogtreecommitdiff
path: root/src/components/channellist/classic/guildlistguilditem.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/channellist/classic/guildlistguilditem.hpp')
-rw-r--r--src/components/channellist/classic/guildlistguilditem.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/components/channellist/classic/guildlistguilditem.hpp b/src/components/channellist/classic/guildlistguilditem.hpp
new file mode 100644
index 0000000..6e2b241
--- /dev/null
+++ b/src/components/channellist/classic/guildlistguilditem.hpp
@@ -0,0 +1,22 @@
+#pragma once
+#include <gtkmm/box.h>
+#include <gtkmm/eventbox.h>
+#include <gtkmm/image.h>
+#include "discord/guild.hpp"
+
+class GuildListGuildItem : public Gtk::EventBox {
+public:
+ GuildListGuildItem(const GuildData &guild);
+
+ Snowflake ID;
+
+private:
+ void UpdateIcon();
+ void OnIconFetched(const Glib::RefPtr<Gdk::Pixbuf> &pb);
+ void OnMessageCreate(const Message &msg);
+ void OnMessageAck(const MessageAckData &data);
+ void CheckUnreadStatus();
+
+ Gtk::Box m_box;
+ Gtk::Image m_image;
+};