2018-05-06 12:52:47 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "controllers/accounts/account.hpp"
|
2018-05-26 20:25:00 +02:00
|
|
|
#include "providers/twitch/twitchaccountmanager.hpp"
|
2018-05-06 12:52:47 +02:00
|
|
|
#include "util/sharedptrelementless.hpp"
|
|
|
|
#include "util/signalvector2.hpp"
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
namespace controllers {
|
|
|
|
namespace accounts {
|
|
|
|
|
|
|
|
class AccountModel;
|
|
|
|
|
|
|
|
class AccountController
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AccountController();
|
|
|
|
|
|
|
|
AccountModel *createModel(QObject *parent);
|
|
|
|
|
2018-05-26 20:25:00 +02:00
|
|
|
void load();
|
|
|
|
|
|
|
|
providers::twitch::TwitchAccountManager Twitch;
|
|
|
|
|
2018-05-06 12:52:47 +02:00
|
|
|
private:
|
|
|
|
util::SortedSignalVector<std::shared_ptr<Account>, util::SharedPtrElementLess<Account>>
|
|
|
|
accounts;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace accounts
|
|
|
|
} // namespace controllers
|
|
|
|
} // namespace chatterino
|