summaryrefslogtreecommitdiff
path: root/components/channels.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-11-04 01:39:56 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-11-04 01:39:56 -0400
commit1f445742b4fbc185fe0e24d9ed2478e4f7495f53 (patch)
tree115717c39b7769a7ad97776fbc299362fd8b10c9 /components/channels.hpp
parentd629846220d069a86b000db213d47c8681e8f57a (diff)
downloadabaddon-portaudio-1f445742b4fbc185fe0e24d9ed2478e4f7495f53.tar.gz
abaddon-portaudio-1f445742b4fbc185fe0e24d9ed2478e4f7495f53.zip
preserve channel list expansion and active channel (#36)
also check getenv in platform
Diffstat (limited to 'components/channels.hpp')
-rw-r--r--components/channels.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/channels.hpp b/components/channels.hpp
index 5cfa9c3..1faf367 100644
--- a/components/channels.hpp
+++ b/components/channels.hpp
@@ -6,7 +6,8 @@
#include <unordered_set>
#include <unordered_map>
#include <sigc++/sigc++.h>
-#include "../discord/discord.hpp"
+#include "discord/discord.hpp"
+#include "state.hpp"
constexpr static int GuildIconSize = 24;
constexpr static int DMIconSize = 20;
@@ -134,6 +135,10 @@ public:
void UpdateListing();
void SetActiveChannel(Snowflake id);
+ // channel list should be populated when this is called
+ void UseExpansionState(const ExpansionStateRoot &state);
+ ExpansionStateRoot GetExpansionState() const;
+
protected:
void UpdateNewGuild(const GuildData &guild);
void UpdateRemoveGuild(Snowflake id);