#ifndef ACCOUNTMANAGER_H #define ACCOUNTMANAGER_H #include "twitch/twitchaccount.h" #include #include namespace chatterino { class AccountManager { public: static AccountManager &getInstance() { static AccountManager instance; return instance; } twitch::TwitchUser &getTwitchAnon(); std::vector getTwitchUsers(); bool removeTwitchUser(const QString &userName); void addTwitchUser(const twitch::TwitchUser &user); private: AccountManager(); twitch::TwitchUser _twitchAnon; std::vector _twitchUsers; std::mutex _twitchUsersMutex; }; } // namespace chatterino #endif // ACCOUNTMANAGER_H