added basic settings page for accounts
This commit is contained in:
+11
-3
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "twitch/twitchuser.h"
|
||||
|
||||
#include <mutex>
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
class AccountManager
|
||||
@@ -13,15 +15,21 @@ public:
|
||||
return instance;
|
||||
}
|
||||
|
||||
twitch::TwitchUser &getAnon();
|
||||
twitch::TwitchUser &getTwitchAnon();
|
||||
|
||||
std::vector<twitch::TwitchUser> getTwitchUsers();
|
||||
bool removeTwitchUser(const QString &userName);
|
||||
void addTwitchUser(const twitch::TwitchUser &user);
|
||||
|
||||
private:
|
||||
static AccountManager instance;
|
||||
|
||||
AccountManager();
|
||||
|
||||
twitch::TwitchUser _anon;
|
||||
twitch::TwitchUser _twitchAnon;
|
||||
std::vector<twitch::TwitchUser> _twitchUsers;
|
||||
std::mutex _twitchUsersMutex;
|
||||
};
|
||||
}
|
||||
} // namespace chatterino
|
||||
|
||||
#endif // ACCOUNTMANAGER_H
|
||||
|
||||
Reference in New Issue
Block a user