8 #include <boost/signals2.hpp> 22 class AccountController;
60 enum class AddUserResponse {
65 AddUserResponse addUser(
const UserData &data);
68 std::shared_ptr<TwitchAccount> currentUser_;
70 std::shared_ptr<TwitchAccount> anonymousUser_;
71 mutable std::mutex mutex_;
Definition: SignalVector.hpp:21
Definition: TwitchAccount.hpp:56
std::shared_ptr< TwitchAccount > getCurrent()
Definition: TwitchAccountManager.cpp:25
std::vector< QString > getUsernames() const
Definition: TwitchAccountManager.cpp:35
QString oauthToken
Definition: TwitchAccountManager.hpp:33
Definition: Application.cpp:48
Definition: TwitchAccountManager.hpp:24
bool isLoggedIn() const
Definition: TwitchAccountManager.cpp:163
Definition: TwitchAccountManager.hpp:29
QString userID
Definition: TwitchAccountManager.hpp:31
std::shared_ptr< TwitchAccount > findUserByUsername(const QString &username) const
Definition: TwitchAccountManager.cpp:49
bool userExists(const QString &username) const
Definition: TwitchAccountManager.cpp:65
QString username
Definition: TwitchAccountManager.hpp:30
Definition: AccountController.hpp:18
QString clientID
Definition: TwitchAccountManager.hpp:32
void load()
Definition: TwitchAccountManager.cpp:140
boost::signals2::signal< void()> currentUserChanged
Definition: TwitchAccountManager.hpp:54
SignalVector< std::shared_ptr< TwitchAccount > > accounts
Definition: TwitchAccountManager.hpp:57
pajlada::Signals::NoArgSignal userListUpdated
Definition: TwitchAccountManager.hpp:55
pajlada::Settings::Setting< QString > currentUsername
Definition: TwitchAccountManager.hpp:51
void reloadUsers()
Definition: TwitchAccountManager.cpp:70