summaryrefslogtreecommitdiff
path: root/src/components/channeltabswitcherhandy.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-04-21 14:41:45 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-04-21 14:41:45 -0400
commitb4ab88f7086d87736848fc026bc87db651f8732e (patch)
treea1069413ae1345f65be23b95bd0248ef17d99a83 /src/components/channeltabswitcherhandy.hpp
parent2dab59547617f7830a4fecd3de380396b47de33f (diff)
downloadabaddon-portaudio-b4ab88f7086d87736848fc026bc87db651f8732e.tar.gz
abaddon-portaudio-b4ab88f7086d87736848fc026bc87db651f8732e.zip
add opened tabs to state
Diffstat (limited to 'src/components/channeltabswitcherhandy.hpp')
-rw-r--r--src/components/channeltabswitcherhandy.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/channeltabswitcherhandy.hpp b/src/components/channeltabswitcherhandy.hpp
index 6a2dbff..41c9c92 100644
--- a/src/components/channeltabswitcherhandy.hpp
+++ b/src/components/channeltabswitcherhandy.hpp
@@ -5,6 +5,7 @@
#include <unordered_map>
#include <handy.h>
#include "discord/snowflake.hpp"
+ #include "state.hpp"
class ChannelData;
@@ -18,6 +19,8 @@ public:
void AddChannelTab(Snowflake id);
// switches to existing tab if it exists
void ReplaceActiveTab(Snowflake id);
+ TabsState GetTabsState();
+ void UseTabsState(const TabsState &state);
private:
void CheckUnread(Snowflake id);