mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
18cb4bd6e5
* Add `<functional>` include to QStringHash.hpp This ensures the base `std::hash` template is declared before this specialization * Add missing includes to `src/providers/twitch/TwitchAccountManager.hpp` * Move explicit HelixChatters constructor to the source file * Remove unused includes & add used includes to NicknamesModel.hpp * NicknamesModel.hpp: Remove `virtual` when `override` is used * Add missing QStringHash include to TwitchEmotes.cpp * Add missing includes to various files * Print Qt version in cmake step Technically unrelated, but I'm sneaking it in * Add changelog entry
36 lines
665 B
C++
36 lines
665 B
C++
#pragma once
|
|
|
|
#include <QList>
|
|
#include <QUuid>
|
|
|
|
#include <deque>
|
|
#include <mutex>
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
namespace chatterino {
|
|
|
|
class NotebookTab;
|
|
|
|
class ClosedSplits
|
|
{
|
|
public:
|
|
struct SplitInfo {
|
|
QString channelName;
|
|
QList<QUuid> 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<SplitInfo> closedSplits_;
|
|
};
|
|
|
|
} // namespace chatterino
|