summaryrefslogtreecommitdiff
path: root/components/channels.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-09-07 02:45:46 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-09-07 02:45:46 -0400
commitda2182a5e7f8c951f4f270bf52e949647a4de5d6 (patch)
tree68f822ccddd0076c12a1cd48ce556d1fa63c820a /components/channels.hpp
parent902c96ee53db6d5cbe2c21c9424c89e1e0088cb1 (diff)
downloadabaddon-portaudio-da2182a5e7f8c951f4f270bf52e949647a4de5d6.tar.gz
abaddon-portaudio-da2182a5e7f8c951f4f270bf52e949647a4de5d6.zip
more signal usage and some other fixes
Diffstat (limited to 'components/channels.hpp')
-rw-r--r--components/channels.hpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/components/channels.hpp b/components/channels.hpp
index ad0879b..53f3789 100644
--- a/components/channels.hpp
+++ b/components/channels.hpp
@@ -4,6 +4,7 @@
#include <queue>
#include <mutex>
#include <unordered_set>
+#include <sigc++/sigc++.h>
#include "../discord/discord.hpp"
class ChannelList {
@@ -11,7 +12,7 @@ public:
ChannelList();
Gtk::Widget *GetRoot() const;
void SetListingFromGuilds(const DiscordClient::guilds_type &guilds);
- void ClearListing();
+ void Clear();
protected:
Gtk::ListBox *m_list;
@@ -51,4 +52,21 @@ protected:
void AddPrivateChannels(); // retard moment
void SetListingFromGuildsInternal();
void AttachMenuHandler(Gtk::ListBoxRow *row);
+
+public:
+ typedef sigc::signal<void, Snowflake> type_signal_action_channel_item_select;
+ typedef sigc::signal<void, Snowflake> type_signal_action_guild_move_up;
+ typedef sigc::signal<void, Snowflake> type_signal_action_guild_move_down;
+ typedef sigc::signal<void, Snowflake> type_signal_action_guild_copy_id;
+
+ type_signal_action_channel_item_select signal_action_channel_item_select();
+ type_signal_action_guild_move_up signal_action_guild_move_up();
+ type_signal_action_guild_move_down signal_action_guild_move_down();
+ type_signal_action_guild_copy_id signal_action_guild_copy_id();
+
+protected:
+ type_signal_action_channel_item_select m_signal_action_channel_item_select;
+ type_signal_action_guild_move_up m_signal_action_guild_move_up;
+ type_signal_action_guild_move_down m_signal_action_guild_move_down;
+ type_signal_action_guild_copy_id m_signal_action_guild_copy_id;
};