#ifndef CHANNELS_H #define CHANNELS_H #include "channel.h" namespace chatterino { class Channels { public: static std::shared_ptr getWhispers() { return whispers; } static std::shared_ptr getMentions() { return mentions; } static std::shared_ptr getEmpty() { return empty; } const static std::vector> getItems(); static std::shared_ptr addChannel(const QString &channel); static std::shared_ptr getChannel(const QString &channel); static void removeChannel(const QString &channel); private: Channels() { } static std::shared_ptr whispers; static std::shared_ptr mentions; static std::shared_ptr empty; static QMap, int>> channels; static QMutex channelsMutex; }; } #endif // CHANNELS_H