#pragma once #include "common/Channel.hpp" #include "widgets/helper/NotebookTab.hpp" #include #include #include #include namespace chatterino { class ClosedSplits { public: struct SplitInfo { QString channelName; QList filters; NotebookTab *tab; // non owning ptr }; static void invalidateTab(NotebookTab *const tab); static void push(const SplitInfo &si); static void push(SplitInfo &&si); static SplitInfo pop(); static bool empty(); static std::size_t size(); private: static std::mutex m_; static std::vector closedSplits_; }; } // namespace chatterino