#pragma once #include "channel.hpp" namespace chatterino { class ChannelManager { public: static ChannelManager &getInstance() { return instance; } SharedChannel getWhispers(); SharedChannel getMentions(); SharedChannel getEmpty(); const std::vector getItems(); SharedChannel addChannel(const QString &channel); SharedChannel getChannel(const QString &channel); void removeChannel(const QString &channel); private: static ChannelManager instance; ChannelManager(); QMap> _channels; QMutex _channelsMutex; SharedChannel _whispers; SharedChannel _mentions; SharedChannel _empty; }; } // namespace chatterino