2019-09-08 22:27:57 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "common/SignalVector.hpp"
|
|
|
|
#include "common/Singleton.hpp"
|
|
|
|
#include "providers/twitch/TwitchAccountManager.hpp"
|
|
|
|
#include "util/SharedPtrElementLess.hpp"
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class Account;
|
|
|
|
class Settings;
|
|
|
|
class Paths;
|
|
|
|
|
|
|
|
class AccountModel;
|
|
|
|
|
|
|
|
class AccountController final : public Singleton
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AccountController();
|
|
|
|
|
|
|
|
AccountModel *createModel(QObject *parent);
|
|
|
|
|
|
|
|
virtual void initialize(Settings &settings, Paths &paths) override;
|
|
|
|
|
|
|
|
TwitchAccountManager twitch;
|
|
|
|
|
|
|
|
private:
|
2020-02-23 19:49:45 +01:00
|
|
|
SignalVector<std::shared_ptr<Account>> accounts_;
|
2019-09-08 22:27:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|